Search found 12 matches

by clhsieh
2013-12-25T19:36:25-07:00
Forum: Developers
Topic: Where are the composite formula come from and why so complic
Replies: 2
Views: 5180

Where are the composite formula come from and why so complic

Full title: Where are the composite formula come from and why so complicated? I am trying to implement my own composite program but cannot get the ideal result at the edge of the object until I saw your source code. The operation like multiply is just mention as A*B in every blending document but in...
by clhsieh
2013-01-29T03:03:14-07:00
Forum: Users
Topic: How to save multiple file using mogrify?
Replies: 0
Views: 6753

How to save multiple file using mogrify?

When I use convert, I can use convert aaa/a.tif -write bbb/b.png -write ccc/c.jpg -resize 100x100! ddd/d.jpg And actually I want to use mogrify to apply this convert for all tif file in aaa, i.e, aaa/*.tif The main problem is that I don't know how to use -write option in mogrify. What I can do now i...
by clhsieh
2013-01-28T08:34:39-07:00
Forum: Bugs
Topic: Convert will affect number of channel when image is simple
Replies: 12
Views: 25502

Re: Convert will affect number of channel when image is simp

The simplest solution for you is probably to always write 16-bit RGBA. Beginning with ImageMagick-6.8.2-0 (SVN revision 10809), the PNG48 and PNG64 output sub-formats will be available, for writing 16-bit RGB and 16-bit RGBA, respectively. I plan to implement PNG00 as well, which will mean to inher...
by clhsieh
2013-01-22T23:41:14-07:00
Forum: Bugs
Topic: Convert will affect number of channel when image is simple
Replies: 12
Views: 25502

Re: Convert will affect number of channel when image is simp

Yes, I know I can force it to any what I want (in most case).
But I just want it same as origin.
by clhsieh
2013-01-22T23:38:57-07:00
Forum: Bugs
Topic: Convert will affect number of channel when image is simple
Replies: 12
Views: 25502

Re: Convert will affect number of channel when image is simp

It is 3 channel right, but it becomes 8-bit and I want keep it 16bit and there are no PNG48 or PNG64 like I mention above. And this method only works when I know what I exactly want, but at most time I just want it keep the same with original image. The source is 3 channel 16-bit, I can get 3 channe...
by clhsieh
2013-01-22T22:59:46-07:00
Forum: Bugs
Topic: Convert will affect number of channel when image is simple
Replies: 12
Views: 25502

Re: Convert will affect number of channel when image is simp

http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=20431 I think this thread denote same bug When the image is 8-bit this can be solve by PNG32, but there are no PNG64 or PNG48 for 16-bit image. I think the correct way is not to change the format or add a option to keep it not over...
by clhsieh
2013-01-22T22:48:10-07:00
Forum: Bugs
Topic: Convert will affect number of channel when image is simple
Replies: 12
Views: 25502

Re: Convert will affect number of channel when image is simp

Either the identify result is not the same. identify black.png black.png PNG 2048x858 2048x858+0+0 16-bit sRGB 10.3KB 0.000u 0:00.000 identify black_.png black_.png PNG 2048x858 2048x858+0+0 8-bit RGB 2c 1.78KB 0.000u 0:00.000 identify black_.dpx black_.dpx DPX 2048x858 2048x858+0+0 16-bit RGB 10.55...
by clhsieh
2013-01-22T22:43:07-07:00
Forum: Bugs
Topic: Convert will affect number of channel when image is simple
Replies: 12
Views: 25502

Re: Convert will affect number of channel when image is simp

This is my test image and result http://www.mediafire.com/?2qz74kq2aq95ti2 How I generate image using opencv: Mat black(858, 2048, CV_16UC3, Scalar(0, 0, 0)); imwrite("black.png", black); How I convert image convert black.png black_.dpx convert black_.dpx black_.png Windows explorer shows ...
by clhsieh
2013-01-22T20:57:51-07:00
Forum: Bugs
Topic: Convert will affect number of channel when image is simple
Replies: 12
Views: 25502

Convert will affect number of channel when image is simple

When I use convert or mogrify to modify some simple image like black, white or little object with large transparent area.
It will change its format, both windows explorer or OpenCV can read only one channel.
It seems like a good compress way to save space, but it will let program after it blow up.
by clhsieh
2012-10-24T20:55:33-07:00
Forum: Magick++
Topic: Can't write png file
Replies: 5
Views: 16376

Re: Can't write png file

Yes it is
DELEGATES bzlib fftw freetype jpeg jng mpeg openexr png tiff x11 zlib
by clhsieh
2012-10-24T00:26:39-07:00
Forum: Magick++
Topic: Can't write png file
Replies: 5
Views: 16376

Can't write png file

As title, I can't write png file using Magick++, other format like jpg, gif are all right. But the convert or mogrify can correctly deal with png. My code for test is extremely easy. #include <Magick++.h> using namespace Magick; int main(int argc, char* argv[]) { InitializeMagick(*argv); Image image...