Creating a label in a Picture, please help!!

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
henri8
Posts: 1
Joined: 2013-05-21T06:15:32-07:00
Authentication code: 6789

Creating a label in a Picture, please help!!

Post by henri8 »

Hi everyone,

i am a beginer and i want to create an image with a postal address in it, and later overlay the image at a specific location on a PDF.

i tried many timesany but i have an issue with size and pixels.
when i open it with photoshop etc, it shows a much much bigger size than it should be. like if i insert into word, etc

my address label size is:
10cm x 4.5xcm font: OCRB Fonsize 12
7 lines, maximum 38 chars per line;

-------------------------------
convert

-size 378x170 (1 cm = 37.79 px i think, i hope)
-font OCRB
-pointsize 16 (if i put 12 the characters are too small)
-background lightgray -fill black

label:
"12345678901234567890123456789012345678\n
12345678901234567890123456789012345678\n
12345678901234567890123456789012345678\n
12345678901234567890123456789012345678\n
12345678901234567890123456789012345678\n
12345678901234567890123456789012345678\n
12345678901234567890123456789012345678"
"c:\add2.jpg"
-------------------------------

i also have a problem because the line spacing between the seven lines it too small, how do i increase it or is it maybe because of the \n ?

i hope you can help, it drives me crazy.
thanks a lot

any experts? thx i had over 150 views but no one can help direct me to the right document, or had issues like that?
thx
Last edited by henri8 on 2013-05-28T02:49:37-07:00, edited 1 time in total.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Creating a Postal label Picture

Post by snibgo »

Try using "-density" and "-interline-spacing".
snibgo's IM pages: im.snibgo.com
Post Reply