Search found 40 matches

by tc33
2012-11-08T11:50:15-07:00
Forum: Users
Topic: Image Stride
Replies: 6
Views: 10417

Re: Image Stride

I was able to dig this up in BMP.c, line 1583, specifically for the format I'm using (BMP2): bytes_per_line=4*((image->columns*bmp_info.bits_per_pixel+31)/32); So I'm going to assume that stride info is determined privately by each image type handler as needed, and it isn't exposed as a property in ...
by tc33
2012-10-30T13:09:05-07:00
Forum: Users
Topic: Image Stride
Replies: 6
Views: 10417

Re: Image Stride

Stride is different than height or width; I'm looking for the stride (or pitch?) http://msdn.microsoft.com/en-us/library/windows/desktop/aa473780.aspx Right now i'm just using stride = columns * channel count, but don't know how to account for any other padding that may exist. I'm using the BMP2 for...
by tc33
2012-10-30T02:32:57-07:00
Forum: Users
Topic: Image Stride
Replies: 6
Views: 10417

Re: Image Stride

Thanks. I re-reviewed the documentation, but was unable to determine which attribute is the 'stride'. What is the name of the stride attribute?
by tc33
2012-10-28T22:25:03-07:00
Forum: Users
Topic: Image Stride
Replies: 6
Views: 10417

Image Stride

I'm using the latest IM and the Magick++ interface. I need to provide an image's stride, along with the image width, to a function in a 3rd party library. However, I don't see how to retrieve/calculate an image's stride via the API. Any hints on how I can determine this info? I checked the docs and ...
by tc33
2012-10-22T15:59:07-07:00
Forum: Users
Topic: PNG: simple read/write changes image, color count
Replies: 5
Views: 9236

Re: PNG: simple read/write changes image, color count

Thanks for the reply and your assistance with this issue. Bug posted as requested:

viewtopic.php?f=3&t=22130
by tc33
2012-10-22T15:57:41-07:00
Forum: Bugs
Topic: [FIXED] PNG: read/write degrades/corrupts image
Replies: 11
Views: 15721

[FIXED] PNG: read/write degrades/corrupts image

Reference post: http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=22128 Test environment: IM 6.8.0.2 x64 debug, MSVC 11, Win7 x64 Problem: a simple file read & file write changes the shading of the following image (via color reduction), unless '-set colorspace RGB' is specified...
by tc33
2012-10-22T15:20:58-07:00
Forum: Users
Topic: PNG: simple read/write changes image, color count
Replies: 5
Views: 9236

Re: PNG: simple read/write changes image, color count

Thanks for the replies. What can I do to detect/work around this issue programmatically? I'm in the process of creating some specialized image manipulation routines in C++ ; I have a requirement to be able to handle a variety of inputs, and produce a lossless output. I'm assuming I can't just global...
by tc33
2012-10-22T13:59:18-07:00
Forum: Users
Topic: PNG: simple read/write changes image, color count
Replies: 5
Views: 9236

PNG: simple read/write changes image, color count

Hi, Using IM 6.8.0.2 x64 debug build on Win7, a simple file read & file write noticeably changes the shading of the following image: Source file: http://cssignet.free.fr/png-test-corpus/01-c3-shouldbe-c0.png I am using the Magick++ interface, but was also able to reproduce this same behavior wit...
by tc33
2012-10-22T10:45:46-07:00
Forum: Bugs
Topic: png.c : png:compression-filter = 0 causes exception
Replies: 3
Views: 6324

Re: png.c : png:compression-filter = 0 causes exception

Awesome, thanks guys.
by tc33
2012-10-21T22:19:38-07:00
Forum: Bugs
Topic: png.c : png:compression-filter = 0 causes exception
Replies: 3
Views: 6324

png.c : png:compression-filter = 0 causes exception

Version 6.8.0.2 file: coders/png.c line: 11364 Issue: specifying a png:compression-filter value of "0" causes an exception to be thrown due to a missing 'else' statement on line 11364. "0" is a valid value for the operation. code in png.c ( starts on line 11348 ) value=GetImageAr...