mattiasf
Forum Replies Created
-
I have verified the issue is with this plugin – I created a new issue with proper description + tests. See: https://www.ads-software.com/support/topic/cant-properly-handle-jpeg-images-only-jpg/
So to sum up:
1) Image thumbnails exist in both “jpeg” and “jpg”.
2) The “jpg” seems to have the right color, the “jpeg” does not.
3) I just run regenerate on this image (wp media regenerate). This looks correct: https://assets.thejewelleryroom.com/wp-content/uploads/2018/09/10014072_SBB_RING_1633A_YG_SINGLE_PAVE-300×300.jpg this does not https://assets.thejewelleryroom.com/wp-content/uploads/2018/09/10014072_SBB_RING_1633A_YG_SINGLE_PAVE-300×300.jpeg – why are there two?@rickardw forgot to tag you! ??
Something is so weird…
Below is two URLs for the same 100×100 image, but…:
https://thejewelleryroom.com/wp-content/uploads/2018/09/10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-100×100.jpeg
https://thejewelleryroom.com/wp-content/uploads/2018/09/10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-scaled-100×100.jpegLooks like it got darkened 2 times, on the one with “-scaled-100×100”. I wouldn’t expect any “-scaled-100×100”, just “100×100”.
I tried renaming the fileextension on one file from “.jpeg” to “.jpg” and now it can correctly find all image sizes (in the Regenerate Thumbnails plugin). I am not sure if this is a bug with WordPress, your plugin or the Regenerate Thumbnails plugin. Anyhow, it outputs:
These are the currently registered thumbnail sizes, whether they exist for this attachment, and their filenames:
?thumbnail: 150×150 pixels (cropped to fit) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-3-150x150.jpg ?medium: 300×300 pixels (proportionally resized to fit inside dimensions) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-3-300x300.jpg ?medium_large: 768×0 pixels (proportionally resized to fit inside dimensions) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-3-768x768.jpg ?large: 1024×1024 pixels (proportionally resized to fit inside dimensions) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-3-1024x1024.jpg ?1536x1536: 1536×1536 pixels (proportionally resized to fit inside dimensions) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-3-1536x1536.jpg ?2048x2048: 2048×2048 pixels (proportionally resized to fit inside dimensions) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-3-2048x2048.jpg ?lazy: 24×24 pixels (proportionally resized to fit inside dimensions) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-3-24x24.jpg ?woocommerce_thumbnail: 300×300 pixels (cropped to fit) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-3-300x300.jpg ?woocommerce_single: 600×0 pixels (proportionally resized to fit inside dimensions) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-3-600x600.jpg ?woocommerce_gallery_thumbnail: 100×100 pixels (cropped to fit) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-3-100x100.jpg ?shop_catalog: 300×300 pixels (cropped to fit) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-3-300x300.jpg ?shop_single: 600×0 pixels (proportionally resized to fit inside dimensions) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-3-600x600.jpg ?shop_thumbnail: 100×100 pixels (cropped to fit) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-3-100x100.jpg
Thanks for your answer Rickard!
Well, only the sizes that I use, and know for a fact to be in use.
Also, on the settings page I can’t select the “-scaled” sizes. WordPress add “-scaled” to big images. For instance this one:
It looks darker than the original:
As with what I mean with “jpeg”/”jpg” extensions, it bugs. I use “Regenerate Thumbnail” plugin just to check sizes, and regenerate individual images when needed. See the text it includes:
These are the currently registered thumbnail sizes, whether they exist for this attachment, and their filenames: ?thumbnail: 150×150 pixels (cropped to fit) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-2-150x150.jpeg ?medium: 300×300 pixels (proportionally resized to fit inside dimensions) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-2-300x300.jpeg ?medium_large: 768×0 pixels (proportionally resized to fit inside dimensions) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-2-768x768.jpeg ?large: 1024×1024 pixels (proportionally resized to fit inside dimensions) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-2-1024x1024.jpeg ?1536x1536: 1536×1536 pixels (proportionally resized to fit inside dimensions) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-2-1536x1536.jpeg ?2048x2048: 2048×2048 pixels (proportionally resized to fit inside dimensions) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-2-2048x2048.jpeg ?lazy: 24×24 pixels (proportionally resized to fit inside dimensions) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-2-24x24.jpeg ?woocommerce_thumbnail: 300×300 pixels (cropped to fit) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-2-300x300.jpeg ?woocommerce_single: 600×0 pixels (proportionally resized to fit inside dimensions) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-2-600x600.jpeg ?woocommerce_gallery_thumbnail: 100×100 pixels (cropped to fit) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-2-100x100.jpeg ?shop_catalog: 300×300 pixels (cropped to fit) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-2-300x300.jpeg ?shop_single: 600×0 pixels (proportionally resized to fit inside dimensions) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-2-600x600.jpeg ?shop_thumbnail: 100×100 pixels (cropped to fit) 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-2-100x100.jpeg The attachment says it also has these thumbnail sizes but they are no longer in use by WordPress. You can probably safely have this plugin delete them, especially if you have this plugin update any posts that make use of this attachment. ?thumbnail (old): 150×150 pixels 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-2-150x150.jpg ?medium (old): 300×300 pixels 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-2-300x300.jpg ?medium_large (old): 768×768 pixels 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-2-768x768.jpg ?large (old): 1024×1024 pixels 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-2-1024x1024.jpg ?1536x1536 (old): 1536×1536 pixels 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-2-1536x1536.jpg ?2048x2048 (old): 2048×2048 pixels 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-2-2048x2048.jpg ?lazy (old): 24×24 pixels 10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-2-24x24.jpg
Notice that it changes between “jpg” and “jpeg”. And now I have found an even weirder issue:
https://thejewelleryroom.com/wp-content/uploads/2020/05/10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-2-300×300.jpeg
(it’s dark, and has the “jpeg” extension)https://thejewelleryroom.com/wp-content/uploads/2020/05/10014130_SBB_BANGLE_1633A_YG_DIAMOND_PAVE-2-300×300.jpg
(it’s the same image as above, except it has the “.jpg” extension, and it is not darker)Forum: Plugins
In reply to: [ImageMagick Engine] What path do I need to add for the CLI?I have access to server console, and a pretty cool server dude who helps me set things up I need.
I am confident it has something to do with the “jpg”/”jpeg” file ending.
I have uploaded the original file here, so you can test yourself: https://easyupload.io/osuthq – otherwise it can be found here: https://thejewelleryroom.com/wp-content/uploads/2019/10/Dulong-4-9.jpeg (copy paste manually in new tab, as I have hotlinking protection)
Forum: Plugins
In reply to: [ImageMagick Engine] Doesn’t Wp already use it by default?I had troubles with image thumbnails loosing color (where source image would be, say Adobe RGB). After activating this plugin, and setting image quality to 82 in the plugin, the color loss is gone, and images are slightly smaller.
Forum: Plugins
In reply to: [Regenerate Thumbnails] Regeneration vs WP-CLI@alexsanford1 I have a related question here: https://www.ads-software.com/support/topic/rebuild-not-regenerate-thumbnails-via-cli/
Forum: Fixing WordPress
In reply to: Images randomly disappearing without any changes madeSeems related to LiteSpeed cache.
Forum: Fixing WordPress
In reply to: Images randomly disappearing without any changes madeAny updates? It happened again, just on a lot of other random products. I am lost here!
Forum: Fixing WordPress
In reply to: Image looks darker in thumbnail than originalHi @corrinarusso! Thanks for pointing that out. That’s related to another issue, where thumbnails are randomly disappearing. No clue why: https://www.ads-software.com/support/topic/images-randomly-disappearing-without-any-changes-made/. I have regnerated thumbnails and the image should exist now.
@kaushalsheth thanks for pointing that out. I am aware theres an overlay on the frontpage, however, that overlay is not added to the product page, and if you watch the image directly you can see it: https://thejewelleryroom.com/wp-content/uploads/2018/10/MISS-RE-GOLD-DIAMOND-sapphire-1024×1024.jpg
(NOTE: hotlinking is not allowed because of a setting on cloudflare, so try to copy and paste the link manually)
@kannu this might be what you’re looking for:
$notices = WC()->session->get(‘wc_notices’);
json_encode($notices);