I need to merge some pair of images into new one.
I thought, that imagemagick convert tool would be sufficient to perform this task more or less automatically, unfortunately output is either RGB or with optimised palette, not suitable for TTD.
I tried options like -map palette.png or -define png:preserve-colormap but aparently they doesn't work properly even for newest version of imagemagick (I make query on imagemagick forum, these options are recognised but not implemented).
Are there any other tools for images manipulation without loss of proper palette?
How to manipulate images with command line tool properly?
Moderator: Graphics Moderators
How to manipulate images with command line tool properly?
Formerly known as: McZapkie
Projects: Reproducible Map Generation patch, NewGRFs: Manpower industries, PolTrams, Polroad, 600mm narrow gauge, wired, ECS industry extension, V4 CEE train set, HotHut.
Another favorite games: freeciv longturn, OHOL/2HOL.
Projects: Reproducible Map Generation patch, NewGRFs: Manpower industries, PolTrams, Polroad, 600mm narrow gauge, wired, ECS industry extension, V4 CEE train set, HotHut.
Another favorite games: freeciv longturn, OHOL/2HOL.
-
- Tycoon
- Posts: 1660
- Joined: 16 Dec 2007 22:24
- Location: Idaho, USA
Re: How to manipulate images with command line tool properly?
You can use the existing tool(s) to process your images as needed, and if they pop out in RGB or with the wrong palette, you can then batch re-palettize them using this GIMP script: http://www.tt-forums.net/viewtopic.php? ... 80#p934898
Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects
"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
- andythenorth
- Tycoon
- Posts: 5656
- Joined: 31 Mar 2007 14:23
- Location: Lost in Music
Re: How to manipulate images with command line tool properly?
Pillow (Python Imaging Library fork) can do it, but it's overhead to setup: there's no simple shell command, you have to script exactly what you want in python.
FIRS Industry Replacement Set (released) | HEQS Heavy Equipment Set (trucks, industrial trams and more) (finished)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Re: How to manipulate images with command line tool properly?
Sound interesting, but seems that this script doesn't work - it shut down quietly, images are untouched.Supercheese wrote:You can use the existing tool(s) to process your images as needed, and if they pop out in RGB or with the wrong palette, you can then batch re-palettize them using this GIMP script: http://www.tt-forums.net/viewtopic.php? ... 80#p934898
I tried to run from script console, it return only ()
I'm using gimp 2.6.
- V453000 :)
- President
- Posts: 946
- Joined: 01 Feb 2011 11:22
- Location: Beer
Re: How to manipulate images with command line tool properly?
Ugh, simply job, just batch convert from rgb to indexed and nothing relevant exist... I found plethora of broken gimp scripts and unanswered question about imagemagick bugs.
Finally I found this:
http://members.ozemail.com.au/~hodsond/dbp.html
after some changes and compiling, it works.
Finally I found this:
http://members.ozemail.com.au/~hodsond/dbp.html
after some changes and compiling, it works.
Who is online
Users browsing this forum: No registered users and 29 guests