Skip to content

Commit

Permalink
Postscript files are usually not animations.
Browse files Browse the repository at this point in the history
  • Loading branch information
hzeller committed Mar 19, 2022
1 parent 26b58c0 commit cfd5f7a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/image-display.cc
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,10 @@ bool ImageLoader::LoadAndScale(const DisplayOptions &opts, int frame_offset,
// got back (or is there ?), so we use a blacklist approach here: filenames
// that are known to be containers for multiple independent images are
// considered not an animation.
const bool could_be_animation = !EndsWith(filename(), "ico") &&
!EndsWith(filename(), "pdf") &&
!EndsWith(filename(), "txt");
const bool could_be_animation = !EndsWith(filename(), ".ico") &&
!EndsWith(filename(), ".pdf") &&
!EndsWith(filename(), ".ps") &&
!EndsWith(filename(), ".txt");

// We can't remove the offset yet as the coalesceImages() might need images
// prior to our desired set.
Expand Down

0 comments on commit cfd5f7a

Please sign in to comment.