[Gimp-developer] file-pdf patch

Thomas Frieling thomas.frieling at kaufda.de
Tue Jul 14 11:00:33 PDT 2009


Hi all!

Just wanted to share a litte patch for file-pdf.c to support a max width/height and a page number as parameters. 
Maybe someone can clean the code and push it into the next gimp release.

Usage:
gimp -i -b '(pdftojpg inputfilename maxWidth maxHeight outputfilename quality radius delta brightness contrast page)' -b '(gimp-quit 0)'
Example:
gimp -i -b '(pdftojpg "/tmp/input.pdf" 1000 1800 "/tmp/output.jpg" 0.85 3.5 15 -10 5 3)' -b '(gimp-quit 0)'

Have fun,
Thomas

-- 
Thomas Frieling
http://www.kaufda.de
Juno Internet GmbH
Geschäftsführer

Tel.: +49 (0) 30 / 253-293-25
Mobil: + 49 (0) 173 / 63 62 62 3
thomas.frieling at kaufda.de

https://www.xing.com/profile/Thomas_Frieling2

Sitz des kaufDA Office:
Kunsthaus Lempertz, Poststr. 21-22, 10178 Berlin

Sitz der Gesellschaft:
Fronhoferstr. 6, 12165 Berlin

Amtsgericht Charlottenburg - HRB 115393 B
Geschäftsführung: Cihan Aksakal, Thomas Frieling, Christian W. Gaiser, Tim M. Marbach   

-------------- next part --------------
A non-text attachment was scrubbed...
Name: file-pdf.patch
Type: text/x-patch
Size: 9670 bytes
Desc: not available
Url : /lists/gimp-developer/attachments/20090714/f2cac2ba/attachment-0001.bin 


More information about the Gimp-developer mailing list