You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which seems to expect .jpeg files to be named .jpg instead.
If ' 'image/jpeg': '.jpg' is replaced with 'image/jpeg': '.jpeg'
and the library is recompiled, the issue seems to be solved.
Might be an environment specific issue, but I could reproduce the issue with any .jpeg file prior to the edition of base.rb
(I am an absolute Junior in Ruby, so apologies if i miss some of the concepts)
The text was updated successfully, but these errors were encountered:
Cathodeo
changed the title
.jpeg images raise 'NotAnImage' exception due to possible type on base.rb
.jpeg images raise 'NotAnImage' exception due to possible typo on base.rb
Aug 13, 2024
Issue:
A valid .jpeg image triggers the 'NotAnImage' exception, despite
.jpeg being on the list of supported extensions
Possible cause:
base.rb has the following extensions:
def extensions
@extensions ||= {
'image/png': '.png',
'image/jpeg': '.jpg',
'image/jpg': '.jpg',
'image/gif': '.gif',
'image/bmp': '.bmp',
'image/tiff': '.tif'
}
end
Which seems to expect .jpeg files to be named .jpg instead.
If ' 'image/jpeg': '.jpg' is replaced with 'image/jpeg': '.jpeg'
and the library is recompiled, the issue seems to be solved.
Might be an environment specific issue, but I could reproduce the issue with any .jpeg file prior to the edition of base.rb
(I am an absolute Junior in Ruby, so apologies if i miss some of the concepts)
The text was updated successfully, but these errors were encountered: