Convert to PDF: output file is too small

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
claus_01
Posts: 6
Joined: 2019-03-03T19:52:44-07:00
Authentication code: 1152
Location: Ludwigsburg

Convert to PDF: output file is too small

Post by claus_01 »

Hello,

after performing

Code: Select all

convert -density 300 image.svg image.pdf
the output file is way too small. I created the SVG in Inkscape (dimensions: 120 x 50 mm). Is '-density 300' superfluous? Version: ImageMagick 6.9.7-4 on Ubuntu 18.04 LTS (64 bit). When I save the image in Inkscape (as PDF/300 dpi), the resulting PDF is ok.

Claus
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert to PDF: output file is too small

Post by snibgo »

A different "-density" before reading the PDF should give a different output size, in pixels. If it doesn't, please post your SVG file.

After reading the PDF, you can use "-density" to change the dimensions in mm, without changing the number of pixels.
snibgo's IM pages: im.snibgo.com
Post Reply