Skip Menu |

This queue is for tickets about the Image-Scale CPAN distribution.

Report information
The Basics
Id: 108376
Status: open
Priority: 0/
Queue: Image-Scale

People
Owner: Nobody in particular
Requestors: HMBRAND [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: colors
Looks promising! What I deerly miss is a limit on the number of colors in the target image. I resize images mostly to generate a normalized set of images from a collection of different sources: they all end having the same maximum size and a maximum number of (64) colors to make them look at least a bit alike, like: $ convert foo.jpg -size 600x800 -resize 600x800 -colors 64 foo.png where 600 is fixed and 800 is calculated as using keep_aspect => 1 my $is = Image::Scale->new ($img); $is->resize_gd ({ width => $width, keep_aspect => 1 }); $is->save_png ($img =~ s/jpg$/png/r); works relatively well, but I'd like to see a limit on the number of colors
Thanks for the idea, although this sounds like a very niche feature and one that is probably better handled by a general-purpose image module and not I::S. I could be missing something though, so let me know more about your use case.
I was under the impression that I already answered this, but alas, I cannot find it :( My use case is the administration of badminton competition results. Team-captains mail me their written down scores as PDF, PNG, JPG, or whatever their reproduction means produce. I then rotate and cut the image with gimp to only show the actual scores (removing whitespace and other clutter). Then I resize/scale the image to a normalized size before putting it on-line, so that all scores have the same size and the presentation is acceptable. All scores now have the same size in dimensions, but not (yet) in color-depth and/or resolution, as not all originals are scanned the same way. In order to have all scores load similar, e.g. on mobile phones (separate image if device is mobile), I also would like to automatically generate the image with a maximum resolution and color depth.