Search found 11 matches

by HoraK-FDF
2019-06-05T12:33:44-07:00
Forum: Developers
Topic: support for raw 16-bit RGB565
Replies: 21
Views: 185641

Re: support for raw 16-bit RGB565

You can use head and tail for that: cat "Loading Default.frm16" |head -c -2400 |tail -c +37 |magick ^ -size 800x600 -depth 16 GRAY:- ^ ( -clone 0 -evaluate And 63488 ) ^ ( -clone 0 -evaluate And 2016 -evaluate LeftShift 5 ) ^ ( -clone 0 -evaluate And 31 -evaluate LeftShift 11 ) ^ -delete 0 ...
by HoraK-FDF
2019-06-04T14:38:33-07:00
Forum: Developers
Topic: support for raw 16-bit RGB565
Replies: 21
Views: 185641

Re: support for raw 16-bit RGB565

I have never seen anything about geometry accepting offset in bytes. Where did you see that? Offset is in pixels according to https://imagemagick.org/script/command-line-processing.php#geometry I've read about it on this pages: https://www.imagemagick.org/discourse-server/viewtopic.php?t=20324 http ...
by HoraK-FDF
2019-06-03T13:37:17-07:00
Forum: Developers
Topic: support for raw 16-bit RGB565
Replies: 21
Views: 185641

Re: support for raw 16-bit RGB565

yes that with the And is clear but when shifted on all other languages I know on one side zeroes come in an this would make the And unnecessary so does ImageMagick rotate interanlly meaning the bits leaving on one side come in on the other? I saw other that said that -size XxY+offset (offset is ...
by HoraK-FDF
2019-06-03T11:36:34-07:00
Forum: Developers
Topic: support for raw 16-bit RGB565
Replies: 21
Views: 185641

Re: support for raw 16-bit RGB565

That file can be successfully read by IM, but the method is awkward. Each pixel has 16 bits, arranged thus: RRRRRGGG GGGBBBBB. So we can read it as a 16-bit grayscale image, then clone for each channel, shuffling bits around, like this (Windows syntax): %IMG7%magick ^ -size 800x600 -depth 16 ...
by HoraK-FDF
2019-06-03T07:53:56-07:00
Forum: Developers
Topic: support for raw 16-bit RGB565
Replies: 21
Views: 185641

Re: support for raw 16-bit RGB565

or an enhancement for the rgb format like it is for bmp:
-define rgb:subtype=RGB565
by HoraK-FDF
2019-06-03T06:39:07-07:00
Forum: Developers
Topic: support for raw 16-bit RGB565
Replies: 21
Views: 185641

Re: support for raw 16-bit RGB565

800x600x(16bit/2byte)=960000bytes, the 16bit are in the format 5bit for red, 6bit for green and 5bit for blue (rgb565). So depth 8 will fail because it takes 8bit for red, 8bit for green and 8bit for blue. It seems that this picture is impossible to load with the current imagemagick only a better ...
by HoraK-FDF
2019-06-02T16:55:45-07:00
Forum: Developers
Topic: support for raw 16-bit RGB565
Replies: 21
Views: 185641

Re: support for raw 16-bit RGB565

by HoraK-FDF
2019-05-25T13:06:31-07:00
Forum: Developers
Topic: support for raw 16-bit RGB565
Replies: 21
Views: 185641

Re: support for raw 16-bit RGB565

as it seems it does not work can someone please implement it?
by HoraK-FDF
2019-05-23T12:45:58-07:00
Forum: Developers
Topic: support for raw 16-bit RGB565
Replies: 21
Views: 185641

Re: support for raw 16-bit RGB565

It's 16bit rgb565, -depth 8 brings nothing because it takes 8 bits for every channel and that produces three small gray pictures horizontally and below them all black.
by HoraK-FDF
2019-05-22T13:53:12-07:00
Forum: Developers
Topic: support for raw 16-bit RGB565
Replies: 21
Views: 185641

Re: support for raw 16-bit RGB565

Thanks for the reply I've tried this:

Code: Select all

magick convert -size 800x600+0 -define bmp:subtype=RGB565 rgb:"Loading Default.2rawdata" "Loading Default.bmp"
but I get an unexpected end of file error.

I think its in a wrong order or something is missing?
by HoraK-FDF
2019-05-22T10:30:58-07:00
Forum: Developers
Topic: support for raw 16-bit RGB565
Replies: 21
Views: 185641

support for raw 16-bit RGB565

Hi, I've tried all day to get ImageMagick output a raw image in 16-bit RGB565 format at the end I surrendered and found that ffmpeg can do this but it would be awesome if ImageMagick can do this also. maybe a new format like rgb565:file.raw or a better -depth option like -depth 5,6,5 would be nice ...