regenerate-thumbnails icon indicating copy to clipboard operation
regenerate-thumbnails copied to clipboard

Old (scaled) images not reset if `big_image_size_threshold` increased or removed

Open roundhill opened this issue 5 years ago • 14 comments

Reported at: https://wordpress.org/support/topic/old-scaled-images-not-reset-if-big_image_size_threshold-increased-or-removed/

If I use the big_image_size_threshold hook to increase or remove scaling of large images on a site with existing media, the plugin continues to uses the “scaled” images as the source, rather than looking at the “original_image” src to decide wether larger images should be created.

In this scenario, if the big_image_size_threshold filter is used to disable the big image threshold, I believe the _wp_attached_file meta value should be changed to the “original_image” src URL prior to regenerating images.

If the big_image_size_threshold filter is used to change the big image threshold, I believe the _wp_attached_file meta value should generate a new version of the ‘scaled’ image at the size defined by big_image_size_threshold.

roundhill avatar May 22 '20 02:05 roundhill

We have the same issue. It looks for: /uploads/2020/06/005612-4-24x24.jpg rather than /uploads/2020/06/005612-4-scaled-24x24.jpg. I guess regenerating the thumbnails could fix the issue

simplenotezy avatar Jul 02 '20 11:07 simplenotezy

Also same issue. I'm trying to figure out how to either serve the original image or regenerate the "scaled" image to a larger version, but no luck yet.

ddegner avatar Sep 04 '20 14:09 ddegner

+1 This is a must have, to fix the 5.3 debacle.

ThinkWired avatar Dec 23 '20 01:12 ThinkWired

Another report for this issue here: https://wordpress.org/support/topic/doesnt-regen-scaled-jpg-large-threshold-images/

renatho avatar May 24 '21 19:05 renatho

I'd like to give this another bump to this bug. The plugin is only hobbling along until this is fixed. Most users probably just don't realize that it isn't working until much later.

ddegner avatar Jul 02 '21 02:07 ddegner

1 year later and there is still no way to "revert" back to the original images. What a horrifying feature from Wordpress.

SeanAUS120 avatar Dec 07 '21 11:12 SeanAUS120

I use this snippet to disable scaling:

add_filter( 'big_image_size_threshold', '__return_false' );

No -scaled version of the file is created when it's first uploaded. But after I regenerate thumbnails, the original file is renamed to -scaled and can't be renamed back.

Screencast:

https://user-images.githubusercontent.com/12199101/160255537-18543516-6128-4825-ad45-ddc2dffa0b22.mp4

gamebits avatar Mar 26 '22 20:03 gamebits

2 years later. Did anyone come up with a solution to remove the existing -scaled images?

SeanAUS120 avatar Jul 22 '22 14:07 SeanAUS120

@SeanAUS120 Try with this plugin: https://github.com/ddur/Warp-iMagick

ddur avatar Jul 27 '22 20:07 ddur

I used to use the Warp-iMagick app, but the owner sold out about 5 months ago, and it is now trojaned. Avoid at all costs.

ddegner avatar Jul 27 '22 23:07 ddegner

@ddegner

I used to use the Warp-iMagick app, but the owner sold out about 5 months ago, and it is now trojaned. Avoid at all costs.

BS. I'm original author and still owner. No trojans if you got the unmodified plugin from the original link.

If you want to know what actually happened, read here the full story: https://community.wordops.net/d/1297-convert-jpegpng-to-webp-on-demand-on-the-fly-for-wordops/23

ddur avatar Jul 28 '22 03:07 ddur

@ddegner

While plugin was available from WordPress repository, A2 hosting used to distribute and install plugin automatically to a2 WordPress hosting buyers. Without my knowledge and without my consent, but that is how GPL license works.

Where did you get that disinformation and lies?

ddur avatar Jul 28 '22 03:07 ddur

BTW only one member of plugin review "team" is paid by another hosting "dream-host" See the "case study" here: https://wordpress.org/five-for-the-future/

How the single member "team" monopoly (paid by dream host) over plugin repository started? Unbelievable post from 2014: https://make.wordpress.org/plugins/2014/11/03/post-summit-status/

Comment from (then) team member in 2014: https://make.wordpress.org/updates/2014/11/07/plugins-update-for-november-6-2014/

Until 2014, plugin review team had at least 3 (quality) members I could find in the plugin review posting. https://profiles.wordpress.org/boonebgorges/ https://profiles.wordpress.org/coffee2code/ https://profiles.wordpress.org/mordauk/

Since 2015, after coup, there are no other "team" members posting here: https://make.wordpress.org/updates/tag/plugins/

Since 2015, after coup, until today, no new plugin review team members can be accepted, due to "technical" limitations. https://make.wordpress.org/plugins/handbook/get-involved/#become-a-reviewer

ddur avatar Jul 28 '22 04:07 ddur

Has this been fixed yet?

picard102 avatar Jun 27 '23 21:06 picard102