Opened 12 years ago

Closed 12 years ago

#2958 closed enhancement (fixed)

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 (1)

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

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by Mavka

Attachment: rgb2pct.py added

patched file

comment:1 Changed 12 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.

comment:2 Changed 12 years ago by chaitanya

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.