Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom sizes not showing in the crop modal #18

Open
juuga opened this issue Nov 14, 2014 · 1 comment
Open

Custom sizes not showing in the crop modal #18

juuga opened this issue Nov 14, 2014 · 1 comment

Comments

@juuga
Copy link

juuga commented Nov 14, 2014

Hey, I installed MIC 1.08. I am using WP 4.0. In my active theme's functions.php I have the following lines added

add_image_size('small_carousel_thumb', 172, 97, false);
add_image_size('large_carousel_image', 870, 490, false);
add_image_size('large_feed_image', 570, 294, false);
add_image_size('small_feed_image', 276, 144, false);

function named_custom_sizes( $sizes ) {
    return array_merge( $sizes, array(
        'large_carousel_image' => __('Large Carousel Image'),
        'small_carousel_thumb' => __('Small Carousel Thumbnail'),
        'large_feed_image' => __('Large Feed Image'),
        'small_feed_image' => __('Small Feed Image')
    ) );
}
add_filter( 'image_size_names_choose', 'named_custom_sizes' );

However in the crop dialog I still only see the Thumbnail tab in the featured image crop dialog. How could I get the other custom image sizes to be available for crop. I am producing this issue on my local server running PHP 5.4.10.

I also tried this with the add_image_size functions inside the after_setup_theme action hook.

@jaydickinson
Copy link

You probably fixed this but for anybody else having the same issue try changing false to true.

so now reads:
add_image_size('small_carousel_thumb', 172, 97, true);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants