Skip to content

Commit

Permalink
io: add .jpeg file extension support (#1060)
Browse files Browse the repository at this point in the history
  • Loading branch information
bouk authored Sep 21, 2023
1 parent 0d94605 commit 42b8816
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 42b8816

Please sign in to comment.