Search found 75 matches

by indiego
2012-09-24T14:11:25-07:00
Forum: Users
Topic: Converting PNG file to display equation on Kindle
Replies: 7
Views: 13752

Re: Converting PNG file to display equation on Kindle

Sorry, I'm too fixated on PDF. After reading 'LaTeX' I thought that you use a PDF as source for the conversion. :? I donno anything about SimpleTex4ht and the way you produce your PNG files. But to get maximal quality you should try to use a density of 167dpi and 4bit-grayscale for the 'PDF to PNG' ...
by indiego
2012-09-24T06:17:27-07:00
Forum: Users
Topic: Converting PNG file to display equation on Kindle
Replies: 7
Views: 13752

Re: Converting PNG file to display equation on Kindle

Why don't you make use of the 16(?) different gray scales of the e-ink display? Should result in a much smoother, less blocky look. And use the dpi of the e-ink display as density setting for your graphics. This way a 1:1 display (still depending on the zoom factor) is possible. Just my 2 cents.
by indiego
2012-09-03T07:28:55-07:00
Forum: Bugs
Topic: wrong PNG background color ('bKGD' chunk)
Replies: 3
Views: 5791

Re: wrong PNG background color ('bKGD' chunk)

I already have updated by compiling the latest version (6.7.9-2). With this version the color is no longer stored as a color string, it's stored as a palette entry number instead (palette entry 146 is pure white). 6.6.0-4: cKGD: background color = (254,254,254) 6.7.9-2: cKGD: background color = pale...
by indiego
2012-09-03T03:51:31-07:00
Forum: Bugs
Topic: wrong PNG background color ('bKGD' chunk)
Replies: 3
Views: 5791

wrong PNG background color ('bKGD' chunk)

Debian 6.0.5 -32bit, IM 6.6.0-4 The background color ('bKGD' chunk) for 'test-l.png' is set to (254,254,254) instead of pure white. convert -define compose:outside-overlay=false \ preumbra-l.png umbra-l.png -set colorspace rgb -channel Alpha -gravity Center -compose Lighten -composite \ -units Pixel...
by indiego
2012-09-03T03:13:50-07:00
Forum: Users
Topic: '-compose lighten' on Linux
Replies: 12
Views: 17340

Re: '-compose lighten' on Linux

I just compiled a new binary from the actual source (6.7.9-2) and the error does not occur any longer. Probably no need to report an allready fixed bug... :) [edit] Stupid me. The actual version doesn't use the 'bKGD' chunk, the background color is part of the palette. Will report in the bug section.
by indiego
2012-08-30T07:48:35-07:00
Forum: Users
Topic: '-compose lighten' on Linux
Replies: 12
Views: 17340

Re: '-compose lighten' on Linux

Just forgot one thing. The background color ('bKGD' chunk) for the Linux generated png is set to (254,254,254) instead of pure white. The windows version works ok (tested with TweakPNG, http://entropymine.com/jason/tweakpng/, where you can even inspect single palette entries).
by indiego
2012-08-30T06:22:06-07:00
Forum: Users
Topic: '-compose lighten' on Linux
Replies: 12
Views: 17340

Re: '-compose lighten' on Linux

I think I found the problem. I again reduced and corrected ('-set -colorspace') my code, but still got different output. After comparing the different images, it came into my mind, that the '-channel Alpha' setting is simply ignored on Linux side. I removed the channel setting on the Linux side and ...
by indiego
2012-08-30T02:17:34-07:00
Forum: Users
Topic: '-compose lighten' on Linux
Replies: 12
Views: 17340

Re: '-compose lighten' on Linux

So it's more a version than an OS related problem. Good news.

Thanks for the code! Will test and report back.
by indiego
2012-08-29T10:31:18-07:00
Forum: Users
Topic: '-compose lighten' on Linux
Replies: 12
Views: 17340

Re: '-compose lighten' on Linux

I have changed the code, but I still don't get the same graphics on Linux and Windows. After adding "-depth 8 -set -colorspace srgb" I get at least the same graphics for both shadows (umbra-?.png,preumbra-?.png). Under Debian IM uses 16bit and RGB(?) as default, while the Windows version u...
by indiego
2012-08-28T04:23:28-07:00
Forum: Users
Topic: '-compose lighten' on Linux
Replies: 12
Views: 17340

Re: '-compose lighten' on Linux

This does what you say you want it to do, but I am not sure that is really the result you want. I am not sure how lighten works if the two images are not the same size. Is the result you posted correct or not correct? You are right. This does exactly what I want it to do and the result is also as e...
by indiego
2012-08-27T11:40:48-07:00
Forum: Users
Topic: '-compose lighten' on Linux
Replies: 12
Views: 17340

Re: '-compose lighten' on Linux

I see.This is just a simplification of a more complex call. I made this example to figure out, why I get the wrong colors under Linux. Note -channel alpha and -channel opacity are the same. Oh, my fault. Looks like I have mixed 'opaque' and 'opacity' here. :roll: But in the real world example I use ...
by indiego
2012-08-27T06:13:22-07:00
Forum: Users
Topic: '-compose lighten' on Linux
Replies: 12
Views: 17340

'-compose lighten' on Linux

Hi, as I understand it, 'lighten' should return the maximum of the given values. In the following example I combine the alpha channel of a small square with color rgba(255,0,0,200) and a big square with color rgba(255,0,0,100). The resulting graphic has a transparency of 222 (and not max(100,200)=20...
by indiego
2012-08-09T00:58:41-07:00
Forum: Users
Topic: OK, really a GhostScript PDF question....
Replies: 7
Views: 18960

Re: OK, really a GhostScript PDF question....

The return is: Error: /undefined in --get-- Operand stack: --dict:6/15(L)-- false --dict:12/19(L)-- --dict:1/1(L)-- --nostringval-- JPXDecode --dict:1/1(L)-- 0 Just a guess. GS seems to crash while decoding one of the images. The keywork here is 'JPXDecode'. On page 67 of the PDF Reference Manual v...
by indiego
2012-08-08T11:16:08-07:00
Forum: Users
Topic: jpg flatten problem
Replies: 0
Views: 3843

jpg flatten problem

Hi, I don't get the expected results when saving as jpg. Here is the decription from the source for better understanding. -- IM SHADOW WITH UMBRA + PREUMBRA AREA -- 1. create preumbra mask as base for shadow -- 2. create preumbra shadow -- 3. add 1px full transparent border (simply avoids PDF render...
by indiego
2012-07-27T05:21:37-07:00
Forum: Users
Topic: Issues converting a PSD generated by IM to JPG
Replies: 7
Views: 11542

Re: Issues converting a PSD generated by IM to JPG

Bad luck then. As I understand it 'colorize' uses the hue and saturation information of color.psd and adds it to the luminace information of the other graphic. So this should do the job... convert color.jpg 1.jpg -compose Colorize -composite test.jpg Maybe some of the gurus here can confirm that (ha...