Opened 3 years ago
Closed 2 years ago
#6393 closed defect (bug) (invalid)
In photo directory, uploading .jpg photo but still showing error of not valid extension type.
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Photo Directory | Keywords: | needs-patch has-screenshot reporter-feedback |
Cc: |
Description
I am trying to contribute to the photo directory and upload the photos clicked by me, all the photos are the jpg type extension but after submitting it still showing the error "This is not a supported image file. Please use a .jpg or .jpeg file.: IMG_20220524_225426_160.jpg".
Attaching image for better understanding.
Attachments (1)
Change History (3)
#2
@
2 years ago
- Resolution set to invalid
- Status changed from new to closed
As indicated, the image type is checked in a few places other than just for the file extension. If it reports that the image is not a supported image file, then the file does not look like a JPEG file. Without a copy of the original photo in question, as was requested, we can't provide any further insight into this particular case.
Note: See
TracTickets for help on using
tickets.
In addition to the filename, the mime type of the image is also checked.
Without the image (Can you attach it here?) it's hard to tell, but I'm guessing it's a PNG or other filetype saved as a .jpg.
If you're on a mac/linux system, you can use
file
to determine the type:(This example is a .jpg from a mobile phone)
and a PNG saved as a jpeg: