Search found 75 matches
- 2017-08-21T02:58:37-07:00
- Forum: Bugs
- Topic: "Trace/BPT trap: 5" when do resize() sometime. Only with: --with-opencl. MacOS X with NVidia GTX 980 G1.
- Replies: 3
- Views: 7004
Re: "Trace/BPT trap: 5" when do resize() sometime. Only with: --with-opencl. MacOS X with NVidia GTX 980 G1.
Thanks for the reply. I built it with "./configure --disable-openmp" but I had no luck. Width/height are: 720x1280, 300x400, 700x600 :) I tested many images. There's no any problem with those images :) BUT: It looks like the problem with my system only. Looks like CUDA driver in MacOS is broken. So ...
- 2017-08-19T07:06:56-07:00
- Forum: Bugs
- Topic: "Trace/BPT trap: 5" when do resize() sometime. Only with: --with-opencl. MacOS X with NVidia GTX 980 G1.
- Replies: 3
- Views: 7004
"Trace/BPT trap: 5" when do resize() sometime. Only with: --with-opencl. MacOS X with NVidia GTX 980 G1.
I'm using: Mac OS X 10.12.5 NVidia GTX 980 CUDA-Z sees my GPU without any problem. $ magick --version Version: ImageMagick 7.0.6-7 Q16 x86_64 2017-08-12 http://www.imagemagick.org Copyright: © 1999-2017 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Cipher ...
- 2017-04-28T21:38:33-07:00
- Forum: Magick++
- Topic: Setting fontWeight/fontStyle/lineSpacing doesn't work
- Replies: 8
- Views: 36763
Re: Setting fontWeight/fontStyle/lineSpacing doesn't work
Well I can use another ttf file for setting italic style of setting new font weight but what to do with the TextInterlineSpacing? It doesn't work in both cases...
- 2017-04-28T21:33:47-07:00
- Forum: Magick++
- Topic: Setting fontWeight/fontStyle/lineSpacing doesn't work
- Replies: 8
- Views: 36763
Re: Setting fontWeight/fontStyle/lineSpacing doesn't work
Code: Select all
$ convert -size 230x130 xc:lightblue -font verdana -pointsize 25 -style italic -draw "gravity NorthWest fill black text 0,0 'The quick red fox jumped over the lazy brown dog'" font1.png
- 2017-04-28T21:22:45-07:00
- Forum: Magick++
- Topic: Setting fontWeight/fontStyle/lineSpacing doesn't work
- Replies: 8
- Views: 36763
Re: Setting fontWeight/fontStyle/lineSpacing doesn't work
Magick::Image image( Magick::Geometry( 300, 300 ), Magick::Color( "white" ) ); std::vector < Magick::Drawable > textArr; textArr.push_back( Magick::DrawablePointSize( 70 ) ); textArr.push_back( Magick::DrawableTextInterlineSpacing( 0.1f ) ); textArr.push_back( Magick::DrawableGravity( MagickCore ...
- 2017-04-28T21:10:14-07:00
- Forum: Magick++
- Topic: Setting fontWeight/fontStyle/lineSpacing doesn't work
- Replies: 8
- Views: 36763
Re: Setting fontWeight/fontStyle/lineSpacing doesn't work
Well maybe. But for what purposes developers created those methods such as fontStyle(), fontWeight(), textInterlineSpacing()?snibgo wrote: ↑2017-04-28T20:46:23-07:00 For drawing text, as opposed to other methods, I suppose you should use methods on http://www.imagemagick.org/Magick++/Drawable.html such as DrawableFont.
- 2017-04-28T19:59:45-07:00
- Forum: Magick++
- Topic: Setting fontWeight/fontStyle/lineSpacing doesn't work
- Replies: 8
- Views: 36763
Setting fontWeight/fontStyle/lineSpacing doesn't work
Here is my code: Magick::Image image( Magick::Geometry( 700, 700 ), Magick::Color( "white" ) ); image.font( "verdana" ); image.fontPointsize( 70 ); image.fontWeight( 900 ); image.fontStyle( Magick::ItalicStyle ); image.textInterlineSpacing( 0.1f ); image.textGravity( MagickCore::CenterGravity ...
- 2017-04-21T18:46:41-07:00
- Forum: Magick++
- Topic: How to work with FX in Magick++?
- Replies: 12
- Views: 33210
Re: How to work with FX in Magick++?
If I use just:
I see the generated thumbnail (yellow background) for that file in my OS.
Code: Select all
testImg.fx( "rgb(255,255,0)" );
- 2017-04-21T18:44:49-07:00
- Forum: Magick++
- Topic: How to work with FX in Magick++?
- Replies: 12
- Views: 33210
Re: How to work with FX in Magick++?
I've just updated my IM to 7.0.5-4 (previously I used 7.0.5-2) and now I see the code: Magick::Image testImg( Magick::Geometry( 500, 500 ), Magick::Color( "white" ) ); testImg.fx( "i/w" ); testImg.write( "images/test-img.png" ); generates a vertical gradient from black to white (from left to right ...
- 2017-04-21T17:57:03-07:00
- Forum: Magick++
- Topic: How to fill a primitive with a gradient color?
- Replies: 10
- Views: 32095
Re: How to fill a primitive with a gradient color?
Oh finally I've got it. You mean simply masks technique. Now I understand what did you mean. Here is the way for doing this: Magick::Image gradImg( Magick::Geometry( 500, 500 ), Magick::Color( "white" ) ); gradImg.read( "gradient:red-blue" ); Magick::Image maskImg( Magick::Geometry( 500, 500 ...
- 2017-04-21T16:00:49-07:00
- Forum: Magick++
- Topic: How to fill a primitive with a gradient color?
- Replies: 10
- Views: 32095
Re: How to fill a primitive with a gradient color?
For translating between command-line and C (or C++), a very useful source is MagickCore\option.c. This file translates command-line options to the internals. Search that file for "CopyOpacity". Thanks, it's very useful file! :) Didn't know about it. Now I know that ColorizeCompositeOp is the ...
- 2017-04-21T15:22:24-07:00
- Forum: Magick++
- Topic: How to fill a primitive with a gradient color?
- Replies: 10
- Views: 32095
Re: How to fill a primitive with a gradient color?
1. What do the "-alpha off" command do? Is it just remove the alpha channel from an image? 2. I try to convert it to C++ so I did: Magick::Image gradImg( Magick::Geometry( 500, 500 ), Magick::Color( "white" ) ); gradImg.read( "gradient:red-blue" ); Magick::Image testImg( Magick::Geometry( 500, 500 ...
- 2017-04-21T13:20:59-07:00
- Forum: Magick++
- Topic: How to fill a primitive with a gradient color?
- Replies: 10
- Views: 32095
Re: How to fill a primitive with a gradient color?
Wow that works really cool but how to convert it to Magick++ format? :) The first problem is with the colorize function. I see two definitions of colorize function: // Colorize image with pen color, using specified percent alpha. void colorize(const unsigned int alpha_,const Color &penColor ...
- 2017-04-21T08:11:59-07:00
- Forum: Magick++
- Topic: How to fill a primitive with a gradient color?
- Replies: 10
- Views: 32095
Re: How to fill a primitive with a gradient color?
Not directly. It can be made transparent, and the image then composited over a gradient image. Such an interesting technique. You mean I can draw a primitive with a transparent fill and put that primitive over the gradient image? Do I need to have a white background outside the primitive? Then how ...
- 2017-04-21T08:04:39-07:00
- Forum: Magick++
- Topic: How to work with FX in Magick++?
- Replies: 12
- Views: 33210
Re: How to work with FX in Magick++?
I suggest you upload the broken PNG file so someone can take a look. Sure. This my broken png file: https://ufile.io/vv7ya Code: Magick::Image testImg( Magick::Geometry( 500, 500 ), Magick::Color( "white" ) ); testImg.fx( "i/w" ); testImg.write( "images/test-img.png" ); I don't know what you expect ...