Also, oddly, this one (maybe the space in the name?):
“carbon black-hero” (ID 455765) failed to resize. The error message was: Unknown failure reason.
The file info is:
“carbon black-hero
File name: nexus2cee_carbon-black-hero.jpg”
Edit: Actually, disregard this one. It’s an invalid jpg.
-
This reply was modified 6 years, 5 months ago by archon810.
I’m nearly finished with a complete rewrite of the plugin from scratch. I’ll verify that the new version can handle @
in the filename and fix it if it can’t.
Thanks for the report!
Awesome! A complete rewrite is pretty scary to use on a prod install right away, any chance of a quick hotfix on the current base?
Wanted to clarify the file name on disk. It’s “nexus2cee_307889-PDP-Overview-SSGS7-Active-img2@2x.png”
I plan on having some people beta test it first, but I’ve also written a ton of automated unit tests to verify that all of the plugin’s functionality works as expected.
Anyway I can’t reproduce this on v2.x:
“nexus2cee_307889-PDP-Overview-SSGS7-Active-img2@2x” (ID 1792) was successfully resized in 1.447 seconds.
Do you know how to use your browser to look at the raw AJAX response?
Afraid it’s not very helpful.
{“error”:”"307889-PDP-Overview-SSGS7-Active-img2@2x" (ID 455763) failed to resize. The error message was: Unknown failure reason.”}
Alright, I found the issue by stepping through your code with a debugger.
Turns out this is a misnamed webp file. It fails precisely here:
file_is_displayable_image()
Bah, false alarm!
May I suggest a better error message, however?
Thanks for tracking down the issue! I’ll throw some invalid images at the new code and make sure it returns useful error messages. 👍