-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug:failed generate png picture thumbnail but some others succeed #268
Comments
Is there an error message? |
|
i got the same error for PNG some get converted and some not |
What happens if you run the given convert command manually? Is there a meaningful error?
|
i did some tests, it appear that when the image have been converted to something other than it's original extension, it triggers the errors, must be something related to the mimeType check (ex : .png , image/jpg), otherwise when the file/img extension is the same as the mimeType (ex : .png , image/png) it doesn't |
So you run into errors when attempting to preview a .png file which is actually a JPEG image, is that it? Do I understand correctly? @hatcherfang is /tmp/IMG20200422_094758.png indeed a PNG image or is it actually a JPG image? GitHub actually did a jpeg preview for your image. |
yes indeed |
Is it acceptable for you to use the extension that matches the right
mime type, or perhaps no extension at all if difficult? Indeed the wrong
extension will confuse the various tools we use to detect types.
@inkhey we have an error when attempting to convert a file that does not
have the correct extension.
Le 06/09/2021 à 16:20, Mad Tofu a écrit :
…
So you run into errors when attempting to preview a .png file
which is actually a JPEG image, is that it? Do I understand correctly?
yes indeed
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#268 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA5D7FPKQTBT2DARQLFNNSDUATE3FANCNFSM5C5AHEBA>.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Description and expectations
I generate some png files' thumbnail failed, but some others succeed when I use the
manager.get_jpeg_preview
.How to reproduce
the image as below:
but the other image is ok as below:
Version information
The text was updated successfully, but these errors were encountered: