Problem with unwanted gamma change
Posted: 2012-07-11T09:18:31-07:00
I'm trying to generate a set of PNGs from some SVGs I've made. Each PNG is made up of 4 of the SVGs in a 2x2 square. The problem is that the generated PNGs are coming out with two different levels of brightness (some of them are darker than they should be, the rest seem to look the same shade as the SVGs) even though the SVGs all use the same range of greyscales. Within each PNG the darkening is uniform. The ones which it chooses to make darker seem to be the same ones each time I run my script, but I can't spot a pattern.
For example if I run:
and
and compare tl.png and mid.png, tl.png is clearly darker than it should be, even though both include chrome_tl.svg and all the SVGs have the same greyscale. The SVGs can be downloaded from http://bombz.googlecode.com/git/svgs/chrome_tl.svg, http://bombz.googlecode.com/git/svgs/chrome_tr.svg, http://bombz.googlecode.com/git/svgs/chrome_bl.svg, http://bombz.googlecode.com/git/svgs/chrome_br.svg, http://bombz.googlecode.com/git/svgs/chrome_horiz.svg and http://bombz.googlecode.com/git/svgs/chrome_vert.svg.
It seems to be making the same ones darker I also tried using convert to make direct PNG versions of the SVGs before pasting sets of 4 PNGs together, but that made things worse, I ended up with 3 levels of brightness, the new one being the darkest.
For example if I run:
Code: Select all
montage -tile 2x2 -background '#0000' chrome_tl.svg chrome_horiz.svg chrome_vert.svg chrome_tl.svg -geometry 36x36+0+0 tl.png
Code: Select all
montage -tile 2x2 -background '#0000' chrome_br.svg chrome_bl.svg chrome_tr.svg chrome_tl.svg -geometry 36x36+0+0 mid.png
It seems to be making the same ones darker I also tried using convert to make direct PNG versions of the SVGs before pasting sets of 4 PNGs together, but that made things worse, I ended up with 3 levels of brightness, the new one being the darkest.