Hi,

I often have several issues with cropped images. I tried to fix by deleting the "styles" folder (yea I know it's dumb but I wanted to try) but not all the images are rebuild, just some of them.

How can I force to rebuild all images ?

Comments

Tourista created an issue. See original summary.

woprrr’s picture

Hi @Tourista,

This problem is due to a problem about File and Image Style @read : #2658268: Cache persistence after derivative creation

During 2658268 patch some cases were missed and that is fixed here #2868339: Public folder check in crop_file_url_alter() is incorrect, does not work for responsive images that permit all changes into crop correctly flush cache persistance by regeneration of query string. Actually Image Styles don't provide dynamic effects like Crop because for the system when you change positions of crop zone your image uri still unchanged and Browser don't refresh that image but for the system (drupal) the image where correclty flushed and re-generated.

For respond to you if you need to regenerate all images generated by Image Styles you can use 'drush image-flush' command but now the crop positions are correctly updated with 2868339 fixe.

Tell me if all is okay to you now and mark this issue as Fixed. Thank you for your feedback.