Skip to content

Commit 5ccc62f

Browse files
committed
Auto-guess format of thumbnail from .jpg file extension
1 parent e037ac0 commit 5ccc62f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

renderdoccmd/renderdoccmd.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ struct ThumbCommand : public Command
270270
type = FileType::TGA;
271271
else if(dot != NULL && strstr(dot, "bmp"))
272272
type = FileType::BMP;
273+
else if(dot != NULL && strstr(dot, "jpg"))
274+
type = FileType::JPG;
273275
else
274276
std::cerr << "Couldn't guess format from '" << outfile << "', defaulting to jpg."
275277
<< std::endl;

0 commit comments

Comments
 (0)