Okay
  Public Ticket #2493419
Image Cropping
Closed

Comments

  •  1
    RealYogan started the conversation

    I'm creating a portfolio item 

    similar to

     http://themenectar.com/demo/salient-agency/portfolio/dark-water/

    I'm uploading images in the same size you guys used 1920x1080

    but upon uploading it turns to 1536x864 and badly compressed

    how do i fix it..?

  •  2,965
    Andrew replied

    Hi there, 

    Can you share a link to your website we take a look.

    Thanks.

  •   RealYogan replied privately
  •  1
    RealYogan replied

    Hi there,

    any update..?

  •  1
    RealYogan replied

    Hey guys kindly help me out.. 

  •  2,965
    Andrew replied

    Hi there,

    Sorry for late response.

    Try to regenerate your image thumbnails using this plugin: https://wordpress.org/plugins/regenerate-thumbnails/

    Thanks.

  •   RealYogan replied privately
  •  1
    RealYogan replied

    Hey andrew let me know if you need any other information inorder to fix this.. kindly let me know.

    Need to fix this before i create other pages in the website. Help me out

    also the thumbnail plugin ( though i think its not relevant to the problem tried as per your instruction) it dint work 

  •  1
    RealYogan replied

    hey guys any solution yet..?

  •  2,965
    Andrew replied

    Hi there,

    You need to register new image size as outline in the link below

    http://themenectar.com/docs/salient/modify-image-sizes/

    Add the following code to function.php file:

    add_action( 'after_setup_theme', 'salient_child_remove_image_sizes', 11 );
    function salient_child_remove_image_sizes() {
        
        remove_image_size( '1536x1536' ); 
        add_image_size( 'regular', 1900, 1230, true );   
          
    }
    

    Thanks.

  •  1
    RealYogan replied

    I tried your instrutions

    not working.. also i tested a new portfolio item with full width image.. same is happening 

    For some reason it is happening every-time i upload a new 1920x1080 image .. it is cropping and compressing badly


    here is the new test post

    http://yogandesign.com/portfolio/79/

  •  1
    RealYogan replied

    When inspected the image is there.. but it is not fetching a proper one

  •  2,965
    Andrew replied

    Hi there,

    Could you allow us to login to your website. We going to need username and password with admin privileges.

    Thanks.

  •   RealYogan replied privately
  •  2,965
    Andrew replied

    Hi there,

    Added the following and it fixed the issue:

    add_action( 'after_setup_theme', 'salient_child_remove_image_sizes', 11 );
    function salient_child_remove_image_sizes() {
        
        remove_image_size( '1536x1536' ); 
        add_image_size( '1536x1536', 1900, 1080, true );   
          
    }
    

    Kind regards.

  •  1
    RealYogan replied

    Thank you so much man.. it dint replace the existing images in media.. but i am glad that it works in new uploads.