Re: Image Manipulation problem
Jason Heblack <[email protected]> Fri, 15 Apr 2005 12:46:35 -0700
| Newsgroups | gmane.comp.video.graphicsmagick.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hi Bob, without any additional image processing operations, the image
displays fine. If there is a manipulation on the image then the image
doesn't display in my program like it does when there is no image
manipulation. Writing the image to a file after manipulation and then
loading the image with Gimp shows that the image is mangled. Here is
the data array I'm using
:
const unsigned char splash_jpg[]={
0xff,0xd8,0xff,0xe0,0x00,0x10,0x4a,0x46,0x49,0x46,0x00,0x01,0x01,0x01,0x00,0x48,
... };
The image is an indexed grayscale image I think... all gray colors.
When saved as GIF format in the above array there is the same problem
>
> I assume that without these additional image processing operations the
> image is written ok? What is the nature of your 'splash_jpg' data? Is
> the image in color, or is it a gray image?
>
> Have you tried writing to some other format besides JPEG to see if it
> is then ok?
>
> Bob
>
>>
>>
>> Image image;
>> Image image(218,342,"RGB",CharPixel,splash_jpg);
>> image.read(218,342,"RGB",CharPixel,splash_jpg);
>> image.charcoal(); //
>> image.write( "x.jpg" );
>>
>>
>>
>> -------------------------------------------------------
>> SF email is sponsored by - The IT Product Guide
>> Read honest & candid reviews on hundreds of IT Products from real users.
>> Discover which products truly live up to the hype. Start reading now.
>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>> _______________________________________________
>> Graphicsmagick-bugs mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/graphicsmagick-bugs
>>
>
> ======================================
> Bob Friesenhahn
> [email protected],
> http://www.simplesystems.org/users/bfriesen/
> GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Graphicsmagick-bugs mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/graphicsmagick-bugs
>
>
>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click