Reputation: 7536
I want the resulting PNG file to have the exact same palette as the input file.
I tried things like:
convert $INPUT -crop 8x32+10+10 -depth 8 $OUTPUT
convert $INPUT -crop 8x32+10+10 -remap $INPUT $OUTPUT
convert $INPUT -crop 8x32+10+10 -define png:preserve-colormap=true $OUTPUT
without luck
Btw, as a workaround, ffmpeg does the job:
ffmpeg -i $INPUT -vf "crop=8:32:0:0" $OUTPUT
Upvotes: 0
Views: 136