Is there a way to allow the image options interface to override the general setting? We use a couple of custom sizes that have odd proportions, so the best crop position varies from image to image. It would be very helpful to be able to regenerate those sizes with a different crop position for certain images without having to change the general setting and then change it back afterward.
]]>my client’s pictures do have watermarks in the top left corner and until recent plugin updates the watermarks were visible even on the thumbnails because they are always on the top left and the images were cropped from bottom right. Now, when I add new pictures or when I have to recreate thumbnails the watermark is not visible anymore because the cropping changed. In the URL I sent you can see both versions of thumbnails — those with watermarks (old thumbs) and the new ones where the watermarks are not visible.
How can I change the cropping behaviour?
Thanks for your time and kind regards,
TiiuK
https://www.ads-software.com/plugins/ml-slider/
]]>I have followed the example in the Codex: https://codex.www.ads-software.com/Function_Reference/add_image_size#Crop_Mode
Code in functions.php:
if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'post-thumbnails' );
}
add_image_size( 'portrait', 200, 300, true );
add_image_size( 'portrait-square', 250, 250, array( 'center', 'top' ));
Code in page.php:
<? the_post_thumbnail('portrait-square'); ?>
I’ve tried this on two different wordpress installs (both local and ftp), and have regenerated the thumbnails.
]]>Since 3.9 WP has a Crop Position function and it doens’t seem to work with the plugin. If it’s activated, the WordPress’ crop position is ignored.
Doesn’t the plugin support it? Is there anything else I could do for now?
Thank you.
https://www.ads-software.com/plugins/thumbnail-upscale/
]]>I’m having some issues with generating the correct retina version of one of the following custom image sizes:
add_image_size('portrait-lg', 946, 260, array('left', 'top') ); // desktop
add_image_size('portrait-md', 768, 220, array('left', 'top') ); // tablets
add_image_size('portrait-sm', 480, 220, array('left', 'top') ); // mobile
According to the WordPress codex, I can add a crop position from which point the image should be cropped in the add_image_size function.
The weird thing is, only the Retina version of the portrait-sm
size doesn’t get cropped horizontally from the right, but is cropped from the center? The other 2 sizes arre cropped correctly from the right, both the normal as well as the retina versions?
I tried deleting all the @2x versions, regenerated all my images again, nothing works.
Think this could be some sort of bug maybe?
The only workaround for now, is to manually replace the retina images that are not correctly cropped.
Thanks!
https://www.ads-software.com/plugins/wp-retina-2x/
]]>