After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 588656 - Patch file-pdf.c to support a max width/height and a page number as parameters
Patch file-pdf.c to support a max width/height and a page number as parameters
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: Plugins
2.6.4
Other All
: Normal enhancement
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2009-07-15 13:35 UTC by Thomas Frieling
Modified: 2018-05-24 12:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to support the described parameters (9.44 KB, patch)
2009-07-15 13:38 UTC, Thomas Frieling
needs-work Details | Review

Description Thomas Frieling 2009-07-15 13:35:29 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
Comment 1 Thomas Frieling 2009-07-15 13:38:09 UTC
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.
Comment 2 Michael Schumacher 2009-07-15 14:01:31 UTC
Hi Thomas,

please create patches in unified diff format, the context format is hard to read.
Comment 3 Sven Neumann 2009-07-15 19:18:44 UTC
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.
Comment 4 GNOME Infrastructure Team 2018-05-24 12:34:44 UTC
-- 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.