• I have used this plugin before and it used to work, but I don’t know why its not working now on a new wordpress site I am working on.

    I have the following in my functions.php:

    if ( function_exists( 'add_theme_support' ) )
    {
        add_theme_support( 'post-thumbnails' );
        set_post_thumbnail_size( 300, 200, true);
        add_image_size('article-full', 300, 0, false);
    }

    I want to enable the user to crop the default post-thumbnail so from the configuration I have hidden the thumbnail and allowed only post-thumbnail to show. (Not that this has any effect, I tried allowing thumbnail too but it doesn’t make any difference).

    When I click on Crop Thumbnail I can crop the thumbnail as I want, and click Save Crop. However, the featured image on the Admin screen of the post and also the post index page which uses the_post_thumbnail() still show the old crop. I am not using any Caching plugins yet. I click Ctrl-F5 to clear the cache just in case but to no avail.

    The strange thing is that if I click on ‘Crop Thumbnail’ again, the Crop Thumbnails dialog box shows the new crop under ‘post-thumbnail’, it is the actual wordpress featured image in admin, and in the actual site that seem to retain the old crop for some reason.

    What could be the cause of this?

    https://www.ads-software.com/plugins/crop-thumbnails/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Any word on this? The plugin suddenly started doing this to me too recently and I can’t figure out why.

    Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    Hi jbx,
    sorry for not answering for so long (strangely a became no mail about new posts).
    ——
    You had some really strange behavior on your page. So we have to make some points clear:

    • on “Settings > Crop-Thumbnails”, do you see all image-sizes you are expecting?
    • are all needed image-sizes unchecked?
    • are there any image-sizes with the same ratio or even the same size?
    • what image size had your thumbnail and what size your post-thumbnail

    As far as i understand you have no problem with the following problem?
    Possible Solutions for the set_post_thumbnail_size to use a wrong value or even disappear:

    • the set_post_thumbnail_size is called twice (only the last call will be used) – try to search each call of set_post_thumbnail_size and make an echo output behind the call, to make clear in which order the calls are.
    • or is not called in the correct action-hook (should be after_theme_setup or something similar
    function myThemeSetup() {
    	add_theme_support( 'post-thumbnails' );
    	set_post_thumbnail_size( 624, 200, true ); //this will be ignored
    	set_post_thumbnail_size( 300, 200, true); //this should be used
    }
    add_action( 'after_setup_theme', 'myThemeSetup' );

    —–
    If you found a solution by your own, let me know.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cropped thumbnail not updating’ is closed to new replies.