Search found 9 matches

by brianp22
2012-01-03T08:20:22-07:00
Forum: Magick++
Topic: Image dimensions?
Replies: 1
Views: 8633

Image dimensions?

Is there an easy way to get the dimensions of an image (width/height) without opening and reading the whole image? Perhaps using wand?

Reading a Jpeg2000 image can be expensive when all I need is the image width and height to allocate memory.....

Thanks!
-brian
by brianp22
2011-12-27T07:49:37-07:00
Forum: Magick++
Topic: Text looks horrible
Replies: 7
Views: 23721

Re: Text looks horrible

Interesting. If I make the outline transparent and the fill the color I want, it seems to be working: http://itic.occinc.com/brian/reverse.png #include <Magick++.h> int main(int, char**) { Magick::Image image("100x120", "linen"); image.font("/usr/share/fonts/truetype/msttcor...
by brianp22
2011-12-27T06:01:11-07:00
Forum: Magick++
Topic: Text looks horrible
Replies: 7
Views: 23721

Re: Text looks horrible

Instead of x: use label.pnm. Then use label.png. Do these renderings look ok? We agree something is wrong and we're trying to narrow down where in the code its misbehavin'. We're offline for a few hours. We will get back to you later. Looks like the convert program is working OK, which implies ther...
by brianp22
2011-12-22T13:54:22-07:00
Forum: Magick++
Topic: Text looks horrible
Replies: 7
Views: 23721

Re: Text looks horrible

convert -font /usr/share/fonts/truetype/msttcorefonts/Courier_New.ttf pointsize 30 label:Magick x: Does this return reasonable results (it does for us). Is something missing from this command? It just hangs for me. I am using Ubuntu 10.04.3 LTS.: libmagick++-dev 7:6.5.7.8-1ubuntu1.1 imagemagick 7:6...
by brianp22
2011-12-22T13:00:11-07:00
Forum: Magick++
Topic: Text looks horrible
Replies: 7
Views: 23721

Re: Text looks horrible

I do have TTF support. identify -list format | grep -i TTF DFONT* TTF r-- Multi-face font package (Freetype 2.3.11) OTF* TTF r-- Open Type font (Freetype 2.3.11) PFA* TTF r-- Postscript Type 1 font (ASCII) (Freetype 2.3.11) PFB* TTF r-- Postscript Type 1 font (binary) (Freetype 2.3.11) TTC* TTF r-- ...
by brianp22
2011-12-22T12:33:24-07:00
Forum: Magick++
Topic: Text looks horrible
Replies: 7
Views: 23721

Text looks horrible

I am using standard Ubuntu fonts: Ghostscript helvetica /usr/share/fonts/type1/gsfonts/n019003l.pfb TrueType courier /usr/share/fonts/truetype/msttcorefonts/Courier_New_Bold.ttf /usr/share/fonts/truetype/msttcorefonts/Courier_New.ttf All come out way too thick. If I use the exact same font in GD, it...
by brianp22
2011-12-20T14:08:29-07:00
Forum: Magick++
Topic: Drawing text on an angle
Replies: 3
Views: 13293

Re: Drawing text on an angle

I figured out who to translate my text start point with the rotation I am placing on the image which fixed my problem.

Still not sure what is going on with the font, but I will start another thread on that (if I need to) to prevent confusion with this thread.

Thanks!

- brian
by brianp22
2011-12-15T11:36:24-07:00
Forum: Magick++
Topic: Drawing text on an angle
Replies: 3
Views: 13293

Re: Drawing text on an angle

Followup question.

Any idea why the font looks so much worse in Magic++ than in GD? It almost looks like Magic++ is forcing the font to bold where GD isn't. I have tried 5 or 6 different GhostScript fonts and see the same thing.

- brian
by brianp22
2011-12-15T07:57:05-07:00
Forum: Magick++
Topic: Drawing text on an angle
Replies: 3
Views: 13293

Drawing text on an angle

I am totally missing something. All I am trying to do is draw some text between 2 points. Quite often, this will be on an angle. My Google-foo has been failing me on this... I know how to do this in GD (call gdImageStringFT) and how to do this in cairo (using pango), but I can not seem to figure it ...