Search found 22 matches

by mattyrb
2020-02-19T11:01:16-07:00
Forum: Developers
Topic: Append+ function on indexed images
Replies: 1
Views: 1271

Append+ function on indexed images

Hi, I have two indexed colour images (16 colours). I'd appended them together and was hoping that the palettes would be stacked one after the other but Imagemagick seems to optimise the palette? I notice in most cases the 16th colour is moved to the 2nd colour (index position 1) and the rest of the ...
by mattyrb
2020-01-30T03:05:03-07:00
Forum: Users
Topic: Replacing colours within indexed image?
Replies: 1
Views: 1155

Replacing colours within indexed image?

I've an index PNG and I wondered if it was possible to replace specific colours in the index via imagemagick? For example I might want to replace colour 16 with red?
by mattyrb
2020-01-27T07:50:10-07:00
Forum: Users
Topic: checks dithering questions
Replies: 0
Views: 2861

checks dithering questions

I've a couple of questions I wondered if someone could help me with. 1. I presently use "convert X.jpg -ordered-dither checks,3,3,3 X2.png" to reduce images to 27 colours. Is it possible to reduce an image to 16 colours without declaring the RGB range and then having to apply a reduction? 2. Is it p...
by mattyrb
2019-10-14T06:53:28-07:00
Forum: Users
Topic: Split image into large tiles?
Replies: 8
Views: 4545

Re: Split image into large tiles?

magick frames.png -crop 216x120 tile%03d.png :info magick: unable to open image 'tile%03d.png': No such file or directory @ error/blob.c/OpenBlob/3497. That command is garbage. Try the commands I showed you. info: frames.png PNG 216x8880 216x120+0+0 8-bit sRGB 3.5611MiB 0.000u 0:00.000 That's the p...
by mattyrb
2019-10-14T06:41:20-07:00
Forum: Users
Topic: Split image into large tiles?
Replies: 8
Views: 4545

Re: Split image into large tiles?

info: frames.png PNG 216x8880 216x120+0+0 8-bit sRGB 3.5611MiB 0.000u 0:00.000

magick frames.png -crop 216x120 tile%03d.png :info
magick: unable to open image 'tile%03d.png': No such file or directory @ error/blob.c/OpenBlob/3497.
by mattyrb
2019-10-14T06:13:33-07:00
Forum: Users
Topic: Split image into large tiles?
Replies: 8
Views: 4545

Re: Split image into large tiles?

The file created is tile000.png it's doing the first 216x120 piece of the image. I get the impression it's just not continuing down the file.
by mattyrb
2019-10-14T05:42:36-07:00
Forum: Users
Topic: Split image into large tiles?
Replies: 8
Views: 4545

Re: Split image into large tiles?

version 7.0.8-68 x64. I'm literally running it at command prompt in Windows 10 but it only seems to produce 1 image and not do the entire image?
by mattyrb
2019-10-14T03:55:20-07:00
Forum: Users
Topic: Split image into large tiles?
Replies: 8
Views: 4545

Split image into large tiles?

I'm using the following command on a 216 x 8880 image

magick convert frames.png -crop 216x120 tiles/tile%04d.png

Unfortunately it only outputs one image at 216x120.

Could someone tell me what I am doing wrong?
by mattyrb
2018-10-07T03:14:41-07:00
Forum: Users
Topic: Order Indexed Colour Palette
Replies: 2
Views: 2606

Re: Order Indexed Colour Palette

Unfortunate! I'll have to script in a second process to do that then. Thanks for the quick reply snibgo.
by mattyrb
2018-10-07T02:25:35-07:00
Forum: Users
Topic: Order Indexed Colour Palette
Replies: 2
Views: 2606

Order Indexed Colour Palette

Is it possible to sort indexed palettes with ImageMagick? I want colour 0 to always be the darkest colour. I can do this in GIMP simply by going from RGB to Indexed.
by mattyrb
2018-10-04T10:39:40-07:00
Forum: Users
Topic: ordered dither checks and remapping possible?
Replies: 24
Views: 8809

Re: ordered dither checks and remapping possible?

Hmm. I would guess that you need the same 16 colours in each frame, to avoid flicker. What I've found so far is applying the colormap before doing anything else reduces the flicker considerably. In jobs like this, rather than trying to design the perfect solution, it can be more productive to creat...
by mattyrb
2018-10-04T07:01:00-07:00
Forum: Users
Topic: ordered dither checks and remapping possible?
Replies: 24
Views: 8809

Re: ordered dither checks and remapping possible?

Then my command will give you up to 512 colours. If you only want 16 colours, your colormap.png needs to contain only 16 colours. I don't know what constraints you have, or how you have chosen the 512 colours. You could remap to those 512 colours, and find the 16 colours that occur most frequently....
by mattyrb
2018-10-04T06:17:19-07:00
Forum: Users
Topic: ordered dither checks and remapping possible?
Replies: 24
Views: 8809

Re: ordered dither checks and remapping possible?

My colourmap contains a 9bit colourmap of 512 possible colours.
by mattyrb
2018-10-04T05:53:33-07:00
Forum: Users
Topic: ordered dither checks and remapping possible?
Replies: 24
Views: 8809

Re: ordered dither checks and remapping possible?

Thanks for everyone's help with this btw! Really appreciate it!
by mattyrb
2018-10-04T02:44:07-07:00
Forum: Users
Topic: ordered dither checks and remapping possible?
Replies: 24
Views: 8809

Re: ordered dither checks and remapping possible?

Okay half way there

convert ', \\Source\\frame470.png', ' -ordered-dither checks,8,8,8 +write ', \\OrderedDither\\frame470.png', ' +dither -remap colormap.png ', '\\Remap\\frame470.png'

However I'm still missing reducing things to 16 colours.