Search found 9 matches

by soyxan
2017-10-30T09:54:38-07:00
Forum: Users
Topic: PANGO center vertically
Replies: 4
Views: 228

Re: PANGO center vertically

With the following command I get the text in the upper position (not centered vertically)

Code: Select all

convert -size 320x96 -background black xc:white ( -gravity Center -background red -font "Verdana" -pointsize 32 pango:test ) -gravity center -composite output.jpg
by soyxan
2017-10-30T03:47:58-07:00
Forum: Users
Topic: PANGO center vertically
Replies: 4
Views: 228

PANGO center vertically

By default pango: command can be centered horizontally with "-gravity Center". How can I center vertically given a canvas size? I am trying to do it this way with no success (my canvas size is 320x96): convert -size 320x96 -background black ( -gravity Center -background red -font %1 -pointsize %2 pa...
by soyxan
2017-10-19T08:28:37-07:00
Forum: Magick++
Topic: GraphicsMagick++ draw text and auto-resize canvas
Replies: 5
Views: 502

Re: GraphicsMagick++ draw text and auto-resize canvas

And do you know any other way to draw an image with a text, having the image the exact size to fit all the text?
by soyxan
2017-10-19T06:30:11-07:00
Forum: Magick++
Topic: GraphicsMagick++ draw text and auto-resize canvas
Replies: 5
Views: 502

Re: GraphicsMagick++ draw text and auto-resize canvas

But with "CAPTION:" protocol I can just put text as a parameter ("CAPTION:Hello this a text"), how can I specify the text porpierties (color, font, size, etc...)?
by soyxan
2017-10-19T00:51:20-07:00
Forum: Magick++
Topic: GraphicsMagick++ draw text and auto-resize canvas
Replies: 5
Views: 502

GraphicsMagick++ draw text and auto-resize canvas

I am planning to generate an image with Magick++ that have some text and I want the image canvas resized automatically based on the text drawn. This is my code: bool LoadText(const std::string& text, const std::string& fontface, int pointsize, Magick::Color color) { image = Magick::Image( Magick::Ge...
by soyxan
2017-05-01T12:58:37-07:00
Forum: Magick++
Topic: API library versions?
Replies: 3
Views: 7828

Re: API library versions?

As far I can understand, I have to install the package libmagick++, but which one?
libmagick++-6.q16-dev - object-oriented C++ interface to ImageMagick - development files
libmagick++-dev - object-oriented C++ interface to ImageMagick

The idea is to have the last version fo the library.
by soyxan
2017-04-29T10:20:54-07:00
Forum: Magick++
Topic: API library versions?
Replies: 3
Views: 7828

API library versions?

Hi, I want to delelop an application for the RaspberryPi in C++ that will use ImageMagick. I found that there is the Magick++ API but I am not quite sure which version/package I need to install: Following the instructions on a web site I installed the following package: sudo apt-get install libgraph...
by soyxan
2017-04-29T09:31:23-07:00
Forum: Users
Topic: Animated GIF with zoom effect
Replies: 2
Views: 2864

Re: Animated GIF with zoom effect

Maybe the problem was Internet Explorer as a viewer. In any case your suggestion (SRT) worked like a charm!
Thanks a lot!
by soyxan
2017-04-29T07:53:46-07:00
Forum: Users
Topic: Animated GIF with zoom effect
Replies: 2
Views: 2864

Animated GIF with zoom effect

I am planning to do a simple zoom effect with a picture and save it as an animated GIF. This is my command: magick rose: -duplicate 100 -resize %[fx:10+t]% -set delay 15 -loop 0 rose.gif But I get a gif with no animation, just showing the first frame (resize 10%). The strange thing is that if I run ...