GNOME Bugzilla – Bug 588656
Patch file-pdf.c to support a max width/height and a page number as parameters
Last modified: 2018-05-24 12:34:44 UTC
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
Created attachment 138442 [details] [review] Patch to support the described parameters This patch works well for my particular issue but is not tested for any other uses at all.
Hi Thomas, please create patches in unified diff format, the context format is hard to read.
We can also not accept a change to the PDB signature of the plug-in as other plug-ins and scripts may rely on it. If you want to introduce extra parameters, then you need to introduce an extra PDB call for this.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/305.