Search found 75 matches

by Airon65
2017-03-28T14:35:09-07:00
Forum: Magick++
Topic: How to blur a text?
Replies: 12
Views: 26680

Re: How to blur a text?

I've tried to go this way: Magick::Image image2( Magick::Geometry( 800, 600 ), Magick::Color( 0, 0, 0, 0 ) ); image2.font( "verdana" ); image2.fontPointsize( 100 ); image2.fillColor( Magick::Color( "maroon" ) ); image2.strokeColor( Magick::Color( "red" ) ); image2.strok...
by Airon65
2017-03-28T12:19:55-07:00
Forum: Magick++
Topic: How to blur a text?
Replies: 12
Views: 26680

Re: How to blur a text?

I can try to put one image over another but I don't know how to create an empty second image to put it over the first one: Magick::Image image( Magick::Geometry( 800, 600 ), Magick::Color( "white" ) ); image.font( "verdana" ); image.fontPointsize( 100 ); image.fillColor( Magick::...
by Airon65
2017-03-28T11:03:57-07:00
Forum: Magick++
Topic: How to blur a text?
Replies: 12
Views: 26680

How to blur a text?

This my failed attempt to blur "Some text 2" only. I need to apply blur effect only for the "Some text 2". As you see my current code blurs all the image. How can I apply blur only for the "Some text 2"? Magick::Image image( Magick::Geometry( 800, 600 ), Magick::Color( ...
by Airon65
2017-03-16T07:07:08-07:00
Forum: Magick++
Topic: How to put one image over another one?
Replies: 3
Views: 15437

Re: How to put one image over another one?

Sorry, but I don't understand your answer :) I understand that I need to draw it as a list (std::vector) of drawables. But I don't understand how can I do it: std::vector < Drawable > arr; arr.push_back( DrawableImage( img1, 50, 100 ) ); // <-- I don't know how to add an image to the list img2.draw(...
by Airon65
2017-03-15T18:38:19-07:00
Forum: Magick++
Topic: How to put one image over another one?
Replies: 3
Views: 15437

How to put one image over another one?

I want to put one image over/under another one. For example: Magick::Image img1( "images/image1.png" ); Magick::Image img2( "images/image2.png" ); img1.draw( img2, 50, 100 ); // <-- 50x100 - my desirable position for placing img2 img1.write( "output.png" ); How can I ge...
by Airon65
2017-03-15T15:27:57-07:00
Forum: Magick++
Topic: How to set an opacity for a color?
Replies: 5
Views: 16314

Re: How to set an opacity for a color?

Yeah, I use the latest IM 7.0.5. Thanks for the help!
by Airon65
2017-03-15T14:58:33-07:00
Forum: Magick++
Topic: How to set an opacity for a color?
Replies: 5
Views: 16314

Re: How to set an opacity for a color?

Thanks the first one is worked for me! In the second way I get error: "error: use of undeclared identifier 'MaxRGB'" but the first one works perfectly! :)
by Airon65
2017-03-15T13:32:46-07:00
Forum: Magick++
Topic: How to set an opacity for a color?
Replies: 5
Views: 16314

How to set an opacity for a color?

My test code is: Magick::Image img( "images/tree.png" ); img.strokeColor( "red" ); img.fillColor( Magick::Color( 0, 255, 0, 127 ) ); img.strokeWidth( 5 ); img.draw( Magick::DrawableCircle( 300, 300, 200, 200 ) ); img.write( "images/img.png" ); But it doesn't work as sem...
by Airon65
2017-03-14T17:45:07-07:00
Forum: Magick++
Topic: How to draw a list of Drawables?
Replies: 1
Views: 11303

Re: How to draw a list of Drawables?

Ok. I've just found the issue. From 7 version of ImageMagick - now it's std::vector, not std::list. Now it works.
by Airon65
2017-03-14T16:03:08-07:00
Forum: Magick++
Topic: How to draw a list of Drawables?
Replies: 1
Views: 11303

How to draw a list of Drawables?

I use ImageMagick 7.0.5, MacOSX 10.12.3. Trying to run this code: list<Drawable> objects_to_draw; // push in list the rendering objects and the // associated draw formatting objects list<Coordinate> coords_of_triangle; // push in list the coordinates of a triangle coords_of_triangle.push_back(Coordi...
by Airon65
2017-02-26T05:34:44-07:00
Forum: Users
Topic: ImageMagick's convert tells me: no images defined
Replies: 7
Views: 16174

Re: ImageMagick's convert tells me: no images defined

Yep I finally got it! :) http://i.imgur.com/j3kguce.png Unbelievable but now I get TOO much blurred image :) Could you please tell me how can I get the blurriness like here (ImageMagic section)? I get another output with imagemagick... https://habrastorage.org/files/057/340/14d/05734014d5f64fdeb2c78...
by Airon65
2017-02-26T05:14:43-07:00
Forum: Users
Topic: ImageMagick's convert tells me: no images defined
Replies: 7
Views: 16174

Re: ImageMagick's convert tells me: no images defined

If I use BW 8-bit png I get this result:

Image
but where's my chars? :)
by Airon65
2017-02-26T04:36:44-07:00
Forum: Users
Topic: ImageMagick's convert tells me: no images defined
Replies: 7
Views: 16174

Re: ImageMagick's convert tells me: no images defined

As for the link to that tutorial actually it's on Russian language: https://habrahabr.ru/post/282191/ In Unix you must escape parenthesis as \( .... \). No quote are needed. Wow it almost work! I got downsampled image: http://oi68.tinypic.com/25r2f7l.jpg with the command: $ convert 4.png -filter Jin...
by Airon65
2017-02-26T02:55:36-07:00
Forum: Users
Topic: ImageMagick's convert tells me: no images defined
Replies: 7
Views: 16174

Re: ImageMagick's convert tells me: no images defined

Thanks a lot for the reply! I use macOS Sierra 10.12.3 and its bash terminal. If you don't mind I'll answer to you with the commands from my terminal: $ ls -la 1.png -rw-r--r--@ 1 mavick staff 657340 26 feb 11:26 1.png $ convert -version Version: ImageMagick 6.8.9-1 Q16 x86_64 2014-04-30 http://www....
by Airon65
2017-02-26T02:21:56-07:00
Forum: Users
Topic: ImageMagick's convert tells me: no images defined
Replies: 7
Views: 16174

ImageMagick's convert tells me: no images defined

I tried to execute following command: convert 1.png -filter 'Jinc ( +clone -negate -morphology Distance Euclidean -level 50%,-50% )' -morphology Distance Euclidean -compose Plus -composite -level 43%,57% -resize 12.5% 1.png It tells me: "convert: no images defined `1.png' @ error/convert.c/Conv...