Search found 31 matches

by qubodup
2013-05-10T10:26:59-07:00
Forum: Bugs
Topic: [RESOLVED] Text rendering: label overflows
Replies: 33
Views: 34676

Re: Text rendering: label overflows

It has to pick one or the other of W or Height to fit. You cannot fit both without one font size and without distorting the text in the other dimension. Yes, that's what I wish to achieve. I am not trying to get this (GIMP MOCKUPS): http://i.imgur.com/CaLSjhB.png http://i.imgur.com/AEjGlI0.png (eew...
by qubodup
2013-05-10T10:12:31-07:00
Forum: Bugs
Topic: [RESOLVED] Text rendering: label overflows
Replies: 33
Views: 34676

Re: Text rendering: label overflows

Width only (best fit) convert -size 500x label:"This is a long test of label" label1.png http://www.fmwconcepts.com/misc_tests/label/label1.png This one has possibly superfluous whitespace on the right. WxH with pointsize (not best fit) convert -size 500x500 -pointsize 24 -gravity center ...
by qubodup
2013-05-10T10:00:57-07:00
Forum: Bugs
Topic: [RESOLVED] Text rendering: label overflows
Replies: 33
Views: 34676

Re: Text rendering: label overflows

You cannot fit text to both width and height when no pointsize is provided. By "fit" I do not mean "fill" but that the left/right (text too long for area) or top/bottom (text too short for area) whitespace is filled with -background color. 300x100 and 100x300 areas should have t...
by qubodup
2013-05-10T04:02:45-07:00
Forum: Bugs
Topic: [RESOLVED] Text rendering: label overflows
Replies: 33
Views: 34676

Re: Text rendering: label overflows

Thank you both for clarifying! I do not expect word-wrap when using label with -size WxH. I expect that the label is rendered on one line and fits inside the -size WxH area. http://www.imagemagick.org/Usage/text/#label uses WxH parameters for -size, so I assumed it's a feature. Images of what happen...
by qubodup
2013-05-09T17:34:32-07:00
Forum: Bugs
Topic: [RESOLVED] Text rendering: label overflows
Replies: 33
Views: 34676

Re: Text rendering: label overflows

Thanks for your reply! The issue persists in 6.8.5.3 on Arch Linux. With label: you should not specify both the width and height. Just use one or the other. label: is not supposed to fit the box, when both width and height are given? Or is just not working as intended? http://i.imgur.com/tlBVclZ.png
by qubodup
2013-03-14T10:20:54-07:00
Forum: Bugs
Topic: [RESOLVED] Text rendering: label overflows
Replies: 33
Views: 34676

Re: label overflows

Thank you for answering! Does the problem occur with all fonts? The default font (not sure which it is, not sure how to check. Also I believe that on many Linux distros many popular font names are aliases for other fonts) has the same problem. I used the command convert -size 1656x250 -background wh...
by qubodup
2013-03-13T22:52:40-07:00
Forum: Bugs
Topic: [RESOLVED] Text rendering: label overflows
Replies: 33
Views: 34676

[RESOLVED] Text rendering: label overflows

Hello, I render text using label to a pre-defined area, not knowing up front, how long the text is. Unfortunately, if the string is long enough, it will overflow, rather than scaling to fit the given area. convert -size 1656x250 -background white -fill black -font URW-Gothic-L-Demi -gravity Center -...
by qubodup
2012-11-22T14:04:33-07:00
Forum: Bugs
Topic: [solved] convert to .pdf keeps file type
Replies: 3
Views: 5941

Re: convert to .pdf keeps file type

Today, it all works. Version: ImageMagick 6.8.0-3 2012-10-27 Q16 http://www.imagemagick.org So strange. Was a dependency broken? Here's the list of what I updated since I last tried. [2012-11-19 14:45] upgraded ldns (1.6.14-1 -> 1.6.16-1) [2012-11-19 14:45] upgraded libcap-ng (0.7-1 -> 0.7.3-1) [201...
by qubodup
2012-11-19T06:53:38-07:00
Forum: Bugs
Topic: [solved] convert to .pdf keeps file type
Replies: 3
Views: 5941

[solved] convert to .pdf keeps file type

I can't convert .png to .pdf. $ convert a.png b.png c.pdf $ identify a.png b.png c.pdf a.png PNG 1274x1749 1274x1749+0+0 8-bit sRGB 2c 17.3KB 0.000u 0:00.000 b.png[1] PNG 1128x1666 1128x1666+0+0 8-bit sRGB 2c 26.5KB 0.000u 0:00.000 c.pdf[2] PNG 1274x1749 1274x1749+0+0 8-bit sRGB 2c 18.2KB 0.000u 0:0...
by qubodup
2012-07-02T12:39:28-07:00
Forum: Users
Topic: [solved] convert -crop gives rest images unless specify +0+0
Replies: 3
Views: 7051

[solved] convert -crop gives rest images unless specify +0+0

Hello, $ convert rose: -crop 70x40 +repage rose.png creates http://i.imgur.com/FwaFc.png and http://i.imgur.com/66Wa8.png but I really just want the first one. It works when I use $ convert rose: -crop 70x40+0+0 +repage rose.png I don't understand what difference "+0+0" does. Can somebody ...
by qubodup
2010-11-14T14:54:51-07:00
Forum: Bugs
Topic: [fixed] "pixels are not authentic" after crop
Replies: 1
Views: 5554

[fixed] "pixels are not authentic" after crop

$ convert --version Version: ImageMagick 6.6.4-10 2010-10-10 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC Features: OpenMP I have a png file that I made in GIMP and want to chop and edit automatically. If I chop it in pieces of 16x16 it works all right, i...
by qubodup
2010-07-08T15:16:36-07:00
Forum: Users
Topic: Converting transparent PNG to Jpeg
Replies: 4
Views: 81722

Re: Converting transparent PNG to Jpeg

Thanks, this helped us fix the preview conversion on our site!

The perlMagick code we had to add to the conversion process was:

Code: Select all

$image->Set(background=>'white');
$image = $image->Flatten()
by qubodup
2009-10-07T23:27:53-07:00
Forum: Users
Topic: Getting the colors of an image as text/hex values
Replies: 4
Views: 10590

Re: Getting the colors of an image as text/hex values

fmw42 wrote:You can also do this to make the image have only 10 colors and list them.

convert logo: +dither -colors 10 -format %c histogram:info: | sort -r -k 1 | head -n 10 | sed -n 's/^\([ 0-9]*\): .*[#]\([a-zA-Z0-9]*\) .*$/\1 \2/p'
That is the next thing I would be trying to do :) Thanks again!
by qubodup
2009-10-07T17:26:11-07:00
Forum: Users
Topic: Getting the colors of an image as text/hex values
Replies: 4
Views: 10590

Re: Getting the colors of an image as text/hex values

This will list out the top 10 colors in the histogram: convert logo: -depth 8 -format %c histogram:info: | sort -r -k 1 | head -n 10 | sed -n 's/^\([ 0-9]*\): .*[#]\([a-zA-Z0-9]*\) .*$/\1 \2/p' If you want fewer than 256 colors in the histogram, add -colors XX. If you want more than the top 10, the...