Search found 36 matches

by spok
2011-12-12T08:11:45-07:00
Forum: Magick++
Topic: Display an image with Magick++ : possible without X-Server ?
Replies: 4
Views: 14860

Re: Display an image with Magick++ : possible without X-Serv

Well, finally I found a class that allows to display jpeg files.
However what I was really looking for is something that allows me to display the magick++ Image object directly from memory without having to write it in a file.
I don't think it's possible.
Anyhow, thanks for your help.
by spok
2011-12-11T16:28:09-07:00
Forum: MagickWand
Topic: Image shadow and relative layers position
Replies: 6
Views: 23675

Re: Image shadow and relative layers position

Thank you !
by spok
2011-12-11T14:49:16-07:00
Forum: MagickWand
Topic: Image shadow and relative layers position
Replies: 6
Views: 23675

Re: Image shadow and relative layers position

Well may be I should explain more precisely what I want to do. May be there is another solution to do it. After adding the shadow to the image, I'd like to extend the canvas of the resulted image, keeping the initial image centered in the canvas. If I just do the extent after the shadow, then the wh...
by spok
2011-12-11T12:50:24-07:00
Forum: MagickWand
Topic: Image shadow and relative layers position
Replies: 6
Views: 23675

Re: Image shadow and relative layers position

Thanks but it not what I'm looking for. For instance you can specify an offset of 10,10 which makes the shadow looks at right bottom. However, depending on the sigma value (the blur effect) the dimensions of the shadow layer may include completely the original image layer because the blur makes the ...
by spok
2011-12-11T11:41:14-07:00
Forum: MagickWand
Topic: Image shadow and relative layers position
Replies: 6
Views: 23675

Image shadow and relative layers position

I have an image for which I add a shadow.
Of course adding the shadow will increase the final image dimensions, but I'd like to know the relative position of the original image inside the final image (dx and dy shift). Is this possible ?
by spok
2011-12-11T08:09:57-07:00
Forum: Magick++
Topic: Display an image with Magick++ : possible without X-Server ?
Replies: 4
Views: 14860

Re: Display an image with Magick++ : possible without X-Serv

if I replace picture.write(FileName); by std::string s="win:"+FileName; picture.write(s); I get an exception Magick: DelegateFailed "/usr/local/bin/display" -immutable -delay 0 -window-group %g -title "%l of %f" "temporary:%i" @ error/delegate.c/InvokeDelegate...
by spok
2011-12-11T02:53:41-07:00
Forum: Magick++
Topic: Display an image with Magick++ : possible without X-Server ?
Replies: 4
Views: 14860

Display an image with Magick++ : possible without X-Server ?

I'd like to display an image under Windows using Magick++ but I don't have an X-Server and I don't want to use the IMDisplay program, because I'd like to display the image directly from the memory image object.
Is there any solution ? if no, is there a solution using MagickWand or MagickCore ?
by spok
2011-12-03T17:18:10-07:00
Forum: MagickWand
Topic: A bug in decorate.c (Frame Image) ?
Replies: 3
Views: 15796

Re: A bug in decorate.c (Frame Image) ?

ok. Thanks. I think I have understand what happens. The 2 first parameters of the the frame method must be at least egal to the sum of the inner and outer bevel (which means the center part of the frame is nul). So 28+28=56. Changing 55 by 56 resolves the problem. Thank you. However I have another q...
by spok
2011-12-03T16:17:54-07:00
Forum: MagickWand
Topic: A bug in decorate.c (Frame Image) ?
Replies: 3
Views: 15796

A bug in decorate.c (Frame Image) ?

I'm using magick++ but it seems the bug is in a .c file, so I post the message here... if I apply the following code on the following image I got the following exception : "Magick: FrameIsLessThanImageSize '<my file name>'@error/decorate.c/FrameImage/214" I have tried 2 other images and go...
by spok
2011-11-29T06:01:56-07:00
Forum: Magick++
Topic: Problem with Annotate method + text rotation
Replies: 1
Views: 8267

Re: Problem with Annotate method + text rotation

Finally I found another solution. I created a new pic with the same size as the image and with a transparent backgound. Then I annotated this new image with the text. Then I croped this image with boundingBox method to obtain an image only with a size correponding to the text inside. The I rotated t...
by spok
2011-11-28T23:55:00-07:00
Forum: Magick++
Topic: Problem with Annotate method + text rotation
Replies: 1
Views: 8267

Problem with Annotate method + text rotation

I'd like to annotate an image with a text which can be rotated by 0,90, 180 or 270 degrees. The angle is not known in advance. The font size also is not known in advance. I use the gravity to choose the text position. When the gravity is in the center, everything works well. However when the gravity...
by spok
2011-11-21T03:10:40-07:00
Forum: MagickWand
Topic: How to add a shadow to an image ?
Replies: 6
Views: 25448

Re: How to add a shadow to an image ?

I just tried the previous function with MagickMergeImageLayers instead of MagickMosaicImages and now it works !!! Don't know what happened before... Anyhow, you can replace MagickMosaicImages with MagickMergeImageLayers and it works. Furthermore MagickMergeImageLayers allows to move the shadow easly...
by spok
2011-11-21T01:58:40-07:00
Forum: MagickWand
Topic: How to add a shadow to an image ?
Replies: 6
Views: 25448

Re: How to add a shadow to an image ?

I have finally found a solution inspired from the following thread ( http://www.imagemagick.org/discourse-server/viewtopic.php?f=6&t=8140 ) and using MagickMosaicImages instead of MagickMergeImageLayers. However the MagickResetIterator is still needed. Here is the code. void magickShadow (char *...
by spok
2011-11-20T09:51:44-07:00
Forum: MagickWand
Topic: How to add a shadow to an image ?
Replies: 6
Views: 25448

Re: How to add a shadow to an image ?

Anyone can help please ?
I spent several hours on it without finding a solution.
Thanks.
by spok
2011-11-20T02:19:23-07:00
Forum: MagickWand
Topic: How to add a shadow to an image ?
Replies: 6
Views: 25448

Re: How to add a shadow to an image ?

Thank you. It doesn't crash now. However it doesn't provide the result I'd like to obtain. here is my new code : void magickShadow (char * filename) { MagickWandGenesis(); PixelWand *ShadowColor = NewPixelWand(); PixelSetColor(ShadowColor,"gray"); PixelWand *BackgroundColor = NewPixelWand(...