Opened 15 years ago

Closed 15 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 15 years ago.
patched file

Download all attachments as: .zip

Change History (3)

by Mavka, 15 years ago

Attachment: rgb2pct.py added

patched file

comment:1 by warmerdam, 15 years ago

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 by chaitanya, 15 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.