Skip to content

Commit

Permalink
io: support images with .jpeg file extension (#1027)
Browse files Browse the repository at this point in the history
  • Loading branch information
csparker247 authored Jul 14, 2023
1 parent 5347df2 commit a12e182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/IO/Image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ CImage* CImage::Create(LPCTSTR szName, IMCREATE mode)
pImage = new CImagePNG();
#endif
#ifdef _IMAGE_JPG
else if (_tcsncicmp(fext, _T(".jpg"), 4) == 0)
else if (_tcsncicmp(fext, _T(".jpg"), 4) == 0 || _tcsncicmp(fext, _T(".jpeg"), 5) == 0)
pImage = new CImageJPG();
#endif
#ifdef _IMAGE_TIFF
Expand Down

0 comments on commit a12e182

Please sign in to comment.