For add_image_size can’t get bigger images then one particular size
-
Hi,
I added some custom image sizes, added them to be selectable from your WordPress admin, but I can’t select higher then 625px wide images. All my definition higher then that is literally ignored and can’t use these image in theme and choose using WP admin. But I can see these sizes are cropped thought the FTP.
This is my code for the functions.php:
// Add image sizes add_image_size( 'custom-half-width', 410, 9999 ); add_image_size( 'custom-medium-full-width', 830, 9999 ); add_image_size( 'custom-large-full-width', 1180, 9999 ); // Register the three useful image sizes for use in Add Media modal add_filter( 'image_size_names_choose', 'my_custom_sizes' ); function my_custom_sizes( $sizes ) { return array_merge( $sizes, array( 'custom-half-width' => __( 'custom-half-width' ), 'custom-medium-full-width' => __( 'custom-medium-full-width' ), 'custom-large-full-width' => __( 'custom-large-full-width' ), ) ); }
And this is what I can choose when adding the media: https://prntscr.com/km7zqg
In the same time, I even can’t define in default WP images higher sizes then 625px wide as all of that size is ignored, as you can see for Large image I can choose 625px wide even I have 1024px defined in my WP Media settings.
Any suggestions what I can check or do to figure out why I can’t choose bigger images then 625px wide?
Huge thanks!
- The topic ‘For add_image_size can’t get bigger images then one particular size’ is closed to new replies.