Re: ImageMagik PDF manipulation rotate, thumbnail, problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 4, 2012 at 9:31 AM, Gary Stainburn
<gary.stainburn@xxxxxxxxxxxxxx> wrote:

> Because some people don't know which way up to put pages into a fax machine I
> also give the user the ability to invert a fax by calling
>
> /usr/bin/convert $1 -rotate 180 $2
>
> However, the resulting PDF file is very poor quality so I changed this to
>
> /usr/bin/convert $1 -density 300x300 -rotate 180 $2

Use the right tool for the job, which in this case isn't ImageMagick:

	pdftk $1 cat 1-endS output $2

In general, ImageMagick is rarely the right option anyway. Here, pdftk
is better for manipulating pdf files, and netpbm is usually better for
images. I'd be using pdftoppm to create the thumbnails, for example
(although it would need a small script to convert them to a more suitable
format afterwards -- either png or jpg).

Tet

-- 
"Java is a DSL for taking large XML files and converting them to stack
traces" -- Bulat Shakirzyanov
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux