Domanda

I'm trying to convert pdf to images using this command:

gm convert ./file.pdf -scene 1 thumbs/thumb%02d.jpg

Although I specify -scene argument, it does nothing, as I get output files starting from thumb00.jpg. And I need them to start from thumb01.jpg.

I'm using GraphicsMagick 1.3.12.

What am I doing wrong here?

È stato utile?

Soluzione

In order to ensure numbered output files, add the +adjoin option like:

gm convert ./file.pdf -scene 1 +adjoin thumbs/thumb%02d.jpg

This additional requirement was added by GraphicsMagick 1.3.15. It is ok to use the same option for all earlier releases.

There is still an inability to specify the starting scene number. This is a known bug.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top