Closed donaldallen closed 5 years ago
Are you sure the file is actually a JPEG image? Perhaps it has the wrong file extension. The fact that WP-CLI rejects it too is informative as it has its own set of regeneration code.
The mimetype that WordPress media library shows for all my client's JPG images is:
image/x-citrix-jpeg
Would that have anything to do with it?
I think so. I don't recognize that MIME type. My plugin (and probably WP-CLI) tries to regenerate image/*
rather than a whitelist as it doesn't know what the image editor supports until it has the image editor actually try to open the file.
Do you know what I could do to work around this?
Seems like it's the result of using Internet Explorer in Citrix. Some reading here: https://stackoverflow.com/a/2600324
The file is apparently identical to a regular JPEG, so you might be able to fix it by downloading the image, opening it in your favorite image editor, and then saving it again. That might reset the MIME type but I'm not sure. If it does, then you can upload it properly.
FYI, if anyone else comes across this problem, it seems that my client was uploading images through IE in Citrix. Very strange. So all I had to do was a find/replace in the database for image/x-citrix-jpeg
and replace with image/jpeg
and that did the trick!
The current image editor cannot process this file type. i am using Newspaper theme in Wordpress. I have uploaded all webP images but not showing in thumbnail in website. i have also added feature image. When I open a particular post it is showing. but not showing in website category .
For me, it was using the custom WP file types plugin, and disabling wordpress internal checks (so that I can upload whatever I want, on a site I'm sole developer). Going back to Wordpress rules made the thumbnails work, which was necessary even after I fixed 65 "citrix" images using @donaldallen 's trick.
ERROR: The current image editor cannot process this file type.
Image is a JPG.
From WP Health Check:
I've also tried using wp-cli:
Here are some server details from WP Health Check: