Search found 10 matches
- 2011-12-21T03:47:02-07:00
- Forum: Bugs
- Topic: convert and identify [v6.7.3-5] crash when reading bmp file
- Replies: 1
- Views: 4997
Re: convert and identify [v6.7.3-5] crash when reading bmp f
Looks like it is fixed in 6.7.4
- 2011-11-14T05:05:11-07:00
- Forum: Bugs
- Topic: convert and identify [v6.7.3-5] crash when reading bmp file
- Replies: 1
- Views: 4997
convert and identify [v6.7.3-5] crash when reading bmp file
> C:\dev\ImageMagick-6.7.3-5\identify.exe -version Version: ImageMagick 6.7.3-6 2011-10-29 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC Features: OpenMP (yes, for some reason it prints that it has version 6.7.3-6) When i try to run identify or convert on ...
- 2011-11-03T01:17:21-07:00
- Forum: Users
- Topic: RGBA 5551 raw binary
- Replies: 4
- Views: 14886
Re: RGBA 5551 raw binary
Whoa! Nice. It works. I haven't event thought in that direction. Thank you very much.
- 2011-11-02T01:45:06-07:00
- Forum: Users
- Topic: RGBA 5551 raw binary
- Replies: 4
- Views: 14886
Re: RGBA 5551 raw binary
In case there is some misunderstanding: the source are 32bpp PNGs (24bpp color + 8 bit alpha, but alpha is either 0 or 255 for each pixel). I want 16bpp raw files (so in each two bytes three 5-bit color components and 1-bit alpha is packed as on image in first post), so the output file size is ...
- 2011-11-01T07:36:43-07:00
- Forum: Users
- Topic: RGBA 5551 raw binary
- Replies: 4
- Views: 14886
RGBA 5551 raw binary
I have a bunch of PNG files with each pixel either completely transparent or completely opaque. I want to convert them to raw binaries (containing only pixel data - no headers, no other stuff) so each pixel is represented by two bytes containing R, G, B values 5 bit per channel and single bit alpha ...
- 2011-02-09T07:15:53-07:00
- Forum: Users
- Topic: Extract 5bpp alpha channel
- Replies: 5
- Views: 10667
Re: Extract 5bpp alpha channel
Docs on -fx you linked above sayfmw42 wrote:what is "a" in your formula?
, and it works.a = alpha
- 2011-02-08T08:22:16-07:00
- Forum: Users
- Topic: Extract 5bpp alpha channel
- Replies: 5
- Views: 10667
Re: Extract 5bpp alpha channel
Thanks, doing convert input.png -channel alpha -fx "a*31/255" output.png before stream does the trick, still I don't like that "*31/255" part: I'd rather use >> operation (thinking I'm working with integer channel values), but since I got a real number in range [0..1] as input, I can't.
- 2011-01-31T05:20:02-07:00
- Forum: Users
- Topic: Extract 5bpp alpha channel
- Replies: 5
- Views: 10667
Extract 5bpp alpha channel
I have a png file with alpha channel. I'm extracting it's alpha channel as raw bytes with this command: Is there any way to reduce alpha values range from 0-255 to 0-31 (so for example 255 becomes 31, and 127 becomes 15) in this process?
Code: Select all
stream -map a input.png output.raw
- 2010-03-02T03:04:14-07:00
- Forum: Users
- Topic: Blending image followed by setting background
- Replies: 3
- Views: 9443
Re: Blending image followed by setting background
Thanks, I've come to this command line: convert "%INPUT_FILE%" "(" +clone -fill "%RENDER_ON%" -colorize 100 ")" -compose dst-over -composite -alpha off "(" -clone 0 -alpha extract -level 0,1 -alpha off ")" -compose copy-opacity -composite -background "%COLOR_KEY%" -alpha background -alpha off ...
- 2010-03-01T10:11:54-07:00
- Forum: Users
- Topic: Blending image followed by setting background
- Replies: 3
- Views: 9443
Blending image followed by setting background
I have images with alpha channel (PNG and TGA) that I want to transform in following way: all pixels that are not fully transparent (alpha > 0) must be blended with given color, after that all pixels that are fully transparent (alpha == 0) must be set to another color and set fully opaque. I made ...