i believe that you can use -limit time to restrict how long the convert to be timeout.
But I cannot find an example how to use it.
I was trying to convert multiple page PDF to PNGs and using this following command to limit it to 10seconds:
convert -limit time 10 input.pdf output.png
The process ...
Search found 5 matches
- 2011-07-17T17:58:24-07:00
- Forum: Users
- Topic: Example using convert command with time limit
- Replies: 1
- Views: 7525
- 2011-06-07T19:13:02-07:00
- Forum: Users
- Topic: PDF to PNGs: get output filenames
- Replies: 5
- Views: 10897
Re: PDF to PNGs: get output filenames
try
convert -density 400 myfile.pdf myfile-%03d.png | convert myfile-*.png -format "%f" info:
myfile-000.png
myfile-001.png
myfile-002.png
It doesn't work if the script runs for the first time.
I receive an error saying
unable to open image `myfile-*.png': No such file or directory @ error ...
- 2011-06-07T16:30:59-07:00
- Forum: Users
- Topic: PDF to PNGs: get output filenames
- Replies: 5
- Views: 10897
Re: PDF to PNGs: get output filenames
filename1=`convert myfile-000.png -format "%t" info:` gives the top of the filename (no suffix)
filename1=`convert myfile-000.png -format "%f" info:` gives the full filename with suffix
see
http://www.imagemagick.org/script/escape.php
This won't work as I don't know what the PNG will be.
As I ...
filename1=`convert myfile-000.png -format "%f" info:` gives the full filename with suffix
see
http://www.imagemagick.org/script/escape.php
This won't work as I don't know what the PNG will be.
As I ...
- 2011-06-07T00:27:31-07:00
- Forum: Users
- Topic: PDF to PNGs: get output filenames
- Replies: 5
- Views: 10897
PDF to PNGs: get output filenames
I wrote a bash script to watch for pdf in a directory and convert them into png files.
Each pdf may have more than one pages.
Is there an easy way to grab for exactly converted png files?
I used command as
convert -density 400 myfile.pdf myfile-%03d.png
so png files will be:
myfile-000.png ...
Each pdf may have more than one pages.
Is there an easy way to grab for exactly converted png files?
I used command as
convert -density 400 myfile.pdf myfile-%03d.png
so png files will be:
myfile-000.png ...
- 2010-10-24T18:43:56-07:00
- Forum: Users
- Topic: PDF to multiple PNG files
- Replies: 1
- Views: 6553
PDF to multiple PNG files
Some questions regarding to converting a mutiple page PDF file into multiple PNG files
I have a 3 page PDF file.
Run this command
convert -density 350 -resize 600 myfile.pdf myfile.png
I receive 3 files (myfile-0.png, myfile-1.png and myfile-2.png) which are good.
I wonder how do I:
1 - add ...
I have a 3 page PDF file.
Run this command
convert -density 350 -resize 600 myfile.pdf myfile.png
I receive 3 files (myfile-0.png, myfile-1.png and myfile-2.png) which are good.
I wonder how do I:
1 - add ...