Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Tue Apr 23, 2019 3:11 am

All times are UTC




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue Feb 12, 2019 7:35 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Thu Jan 03, 2013 5:20 pm
Posts: 299
Location: New England, USA
I create most of my sprites in Pixeltool, then usually have to go into Photoshop to apply the palette. I'd love to do that in Imagemagick, but before I start digging into that, has anyone had any luck getting it to work?

_________________
My NewGRFS:
VACE: VTOL AirCraft for Everyone | Martian Industries | Martian Town Names | Experiments and One-Offs


Top
   
PostPosted: Wed Feb 20, 2019 9:00 pm 
Online
Tycoon
Tycoon

Joined: Wed Jan 17, 2007 12:14 am
Posts: 7312
can't pixeltool apply the correct palette in the first place?

_________________
You might not exactly be interested in Ferion, but if you are, have fun :)


Top
   
PostPosted: Thu Feb 21, 2019 5:23 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Thu Jan 03, 2013 5:20 pm
Posts: 299
Location: New England, USA
I don't think so. I always have to run them through photoshop to apply the palette. The Pixeltool images are RGB, since they are just generated in the browser.

_________________
My NewGRFS:
VACE: VTOL AirCraft for Everyone | Martian Industries | Martian Town Names | Experiments and One-Offs


Top
   
PostPosted: Mon Apr 08, 2019 11:46 am 
Offline
President
President
User avatar

Joined: Tue Feb 01, 2011 11:22 am
Posts: 924
Location: Beer
I wrote RGBA Eater to convert 32bpp into 8bpp, but it can also be used to just set a palette of a file. I'm not sure how exactly it will behave if your image has no alpha, I have to test that.

You can download/check out the repository here:

https://github.com/V453000/RGBA-Eater

The usage isn't mega-friendly yet but it works. You just need python 3 with pillow installed. If you have some specific problems I can try to address them. :)

EDIT: I added support for RGBA without alpha.

_________________
ImageImageImage


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2019 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2019.
Hosted by Zernebok Hosting.