Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to the Power Users community on Codidact!

Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.

Set number of frames per second when creating an animated png with ImageMagick

+4
−0

I would like to convert a pdf file into an animated png with a specific number of frames per second using ImageMagick .

The example pdf file used below can be downloaded from https://mirrors.ctan.org/macros/latex/contrib/mwe/example-image-letter-numbered.pdf

If I use

magick example-image-letter-numbered.pdf APNG:test.png

the resulting animated png will include each page of the pdf as one frame.

Overview of all the frames in the animated png. Each frame is only included once

However I would like to slow down the animation to a frame rate of one frame per second.

I tried with

magick -delay 60 example-image-letter-numbered.pdf APNG:test.png

which will produce a slowed-down animation, but each page of the pdf is now repeated for 20 frames:

Overview of all the frames of the animated png which shows that every frame is repeated 20 times

Is there a way to actually set the frame rate instead of just repeating the same frame multiple times, which seems to slow down the conversion quite a bit?

History

1 comment thread

Two passes? (1 comment)

Sign up to answer this question »