Search found 5 matches

by davidosullivan
2013-02-25T07:15:31-07:00
Forum: Users
Topic: saving output as png makes image dark
Replies: 9
Views: 9569

Re: saving output as png makes image dark

Yeah so actually now I have the opposite problem, color images or grayscale images that have been rotated and then cropped are coming out too light... So are we saying color images need to be sRGB and greyscale RGB? If so how can I test if an image is greyscale? get colorspace just returned ...
by davidosullivan
2013-02-24T18:11:52-07:00
Forum: Users
Topic: saving output as png makes image dark
Replies: 9
Views: 9569

Re: saving output as png makes image dark

Ok cracked it, setting the colorspace to rgb rather than srgb seems to work for everything...
by davidosullivan
2013-02-24T18:05:09-07:00
Forum: Users
Topic: saving output as png makes image dark
Replies: 9
Views: 9569

Re: saving output as png makes image dark

ok well setting $image->setColorspace(Imagick::COLORSPACE_GRAY);
$image->setImageColorspace(Imagick::COLORSPACE_GRAY); makes the output correct, only problem is that $image->getColorspace(); returns COLORSPACE_UNDEFINED so I cannot tell if the image is greyscale or not...
by davidosullivan
2013-02-24T15:04:55-07:00
Forum: Users
Topic: saving output as png makes image dark
Replies: 9
Views: 9569

Re: saving output as png makes image dark

Thanks so much for getting back to me ;) I had look at that page but it does not seem very clear what I should actually do to fix the issue... I am guessing I need to run some test for grayscale and if so set some parameter or other... Any tips on how I might achieve this using the php commands (i.e ...
by davidosullivan
2013-02-24T14:29:29-07:00
Forum: Users
Topic: saving output as png makes image dark
Replies: 9
Views: 9569

saving output as png makes image dark

Hi there, I am using imagemagick in a plugin for wordpress (so I am not using the command line but doing things through PHP). Everything seems to be working quite well except that with some images when I save then as png they end up very dark, if I save the image as jpg it is fine. The reason I need ...