Post Reply 

tiles to files plugin

Jun 26, 2012, 19:25
Post: #1
tiles to files plugin
I'm using this plugin (http://registry.gimp.org/node/20868) to separate the image into layers.
The plugin works well, but, when I try to separate an image containing transparency the splited layers stay with a black background.
How can I change this plugin to generate the new layer with transparency?
Find all posts by this user
Quote this message in a reply
Jun 26, 2012, 19:38
Post: #2
RE: tiles to files plugin
You have to make it call file-png-save instead of file-jpeg-save, since jpegs can't have transparent pixels. file-png-save will likely have slightly different parameters. Use the script-fu console and it "browse" button to find everything you need to know about file-png-save.

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Jun 26, 2012, 21:08
Post: #3
RE: tiles to files plugin
First, thank you for answer.
I've did the modifications (the extension to ".png", and the code), but still the same.
Code:
(file-png-save2 RUN-NONINTERACTIVE
                      newImage
                      tmpLayer
                      outfname
                      outfname
                      9 1 1 0 1 1 1 1 1)
              )

Attached image that I'm using.


Attached File(s) Image(s)
   
Find all posts by this user
Quote this message in a reply
Jun 26, 2012, 22:44
Post: #4
RE: tiles to files plugin
Solved!

Changed RGB-IMAGE to RGBA-IMAGE

Code:
(car (gimp-layer-new newImage tileWidth tileHeight
                         RGBA-IMAGE outfname 100
                         NORMAL-MODE)))
Find all posts by this user
Quote this message in a reply
Jun 26, 2012, 22:45
Post: #5
RE: tiles to files plugin
In the gimp-layer-new call, replace RBG-IMAGE by RGBA-IMAGE (RGBA tells it to have an alpha channel, so transparency is preserved).

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Jun 26, 2012, 22:46
Post: #6
RE: tiles to files plugin
Ninja'ed Smile

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Any plugin for open multiple image in paint.net shinprog 1 325 Oct 31, 2017 11:38
Last Post: paynekj
  plugin save for web in Gimp 2.9.6 Dkk 1 191 Oct 19, 2017 09:02
Last Post: paynekj
  Loading PythonFu Plugin: ImportError for .../python/gimp.so (GIMP 2.8.22/OSX/Py2.7.9) joroek 1 315 Jul 11, 2017 07:26
Last Post: ythgilb
  [Easy] Sobel plugin parameters t4u 2 365 Oct 7, 2014 19:09
Last Post: ofnuts
  Color menuitems in script or plugin Barbie 4 574 Sep 29, 2014 09:51
Last Post: paynekj

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS