Ticket #2958 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

rgb2pct using external color palette

Reported by: Mavka Owned by: chaitanya
Priority: normal Milestone:
Component: Utilities Version: unspecified
Severity: normal Keywords: rgb2pct palette
Cc: warmerdam

Description

I have add 1 argument

-pct palette_file

And now program open palette_file, get its palette and convert src_file with with it. It's usefull to convert many tiles with one colors set. Compatible with

gdal_merge.py -pct

Sorry, i havn't diff on this WinXP workstation. Full code is attached.

Attachments

rgb2pct.py Download (5.0 KB) - added by Mavka 3 years ago.
patched file

Change History

Changed 3 years ago by Mavka

patched file

Changed 3 years ago by warmerdam

  • cc warmerdam added
  • owner changed from warmerdam to chaitanya

Chaitanya,

Please review, test and apply in trunk if the changes look appropriate. Also please ensure that the rgb2pct utility documentation is properly updated to reflect the new option.

Changed 3 years ago by chaitanya

  • status changed from new to closed
  • resolution set to fixed

Applied the patch in trunk. (r16830, r16831) Added documentation in trunk. (r16831 )

Note: See TracTickets for help on using tickets.