Support » Plugin: Crop-Thumbnails » Existing crop images not updating, new crops are OK?

  • Resolved JamieWD

    (@jamiewd)


    If I go to crop an image size that already has a crop I do not see it update to the new image in the backed nor on the front end. If I crop a size that does not yet have a generated file it is generated and updated.

    I’m certain this is not a local browser cache (checked from alt device) nor a plugin ‘file cache’ (disabled) or CDN cache (not active during development). It’s almost like it is a file permission issue but I can’t see how.

    Any ideas what might be going on here?

Viewing 2 replies - 1 through 2 (of 2 total)
  • OK. After looking I could see the files were it seems being created in all cases. but in the temp folder I noticed testfile.jpg.webp type names .. ie they were being written with a webp extension … and I assume left there because a file move was looking for the .jpg extension. I’m not sure why it was working with images marked as ‘Original image size too small for good crop images’

    It turns out this all seems to be caused by a re-write rule added by ewww image optimiser plugin. i commented out the below entry and it all works as planned. (btu of course the plugin is not then serving its optimised versions).

    Not sure if there is a solution for these to work together?

    # BEGIN EWWWIO
    # The directives (lines) between BEGIN EWWWIO and END EWWWIO are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_ACCEPT} image/webp
    RewriteCond %{REQUEST_FILENAME} (.*)\.(jpe?g|png|gif)$
    RewriteCond %{REQUEST_FILENAME}.webp -f
    RewriteCond %{QUERY_STRING} !type=original
    RewriteRule (.+)\.(jpe?g|png|gif)$ %{REQUEST_URI}.webp [T=image/webp,E=accept:1,L]
    </IfModule>
    <IfModule mod_headers.c>
    Header append Vary Accept env=REDIRECT_accept
    </IfModule>
    AddType image/webp .webp

    Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    hi JamieWD,
    sorry i currently have no time looking into this. I also can’t provide an adjustment for every image optimization solution, cause every optimizer worked in a different way.

    You may have a look at the custom actions and filters the plugin provides, so maybe you can enhance the experience and create the webp images yourself (or trigger the optimizer from there to recreate the webp files).

    You found a documentation of all the plugins custom actions and filters on
    https://github.com/vollyimnetz/crop-thumbnails

    Good luck

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.