It is currently Thu Sep 24, 2026 5:50 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Template weirdness[SOLVED]
PostPosted: Mon Sep 05, 2016 10:00 am  (#21) 
Offline
GimpChat Member

Joined: Jul 17, 2016
Posts: 293
Location: Arlington, TX
You can also open the templaterc file and edit it. This is actually quicker if you want to do a bunch of changes.

This is how it looks with the default background fill;
(GimpTemplate "*********"
    (width 360)
    (height 360)
    (unit pixels)
    (xresolution 300.000000)
    (yresolution 300.000000)
    (resolution-unit inches)
    (image-type rgb)
    (fill-type background-fill)
    (comment "Created with GIMP"))

And after changing it to transparency via the template dialog.
(GimpTemplate "************"
    (width 2560)
    (height 1440)
    (unit pixels)
    (xresolution 300.000000)
    (yresolution 300.000000)
    (resolution-unit inches)
    (image-type rgb)
    (fill-type transparent-fill)
    (comment "Created with GIMP"))
I had tried editing this before on my other computer. But I destroyed all the templates because I didn't use the correct wording for the fill-type line. This file gets automatically overwritten when you close GIMP. Not only does it save changes but apparently it also eliminates erroneous data by removing the "broken" template. So if you put the wrong information in a line in the templaterc file GIMP will completely remove that template from the file. Definitely save a copy before you start tinkering.

I changed a couple of the templates via the dialog and exited GIMP to see how the templaterc file had changed. Then I used find/replace to change the background fill, resolution, and comment settings on all the templates at once. I reopened GIMP and voila! All the templates are there and set to the proper settings.

It still baffles me that GIMP has no problem saving the resolution, the image size, and the comment when you create a new template but that it won't save the transparent fill. Clearly it knows how to save a transparent fill. Anyhow, my OCD is happy now that all my templates match my default settings.

_________________
Just a short while ago I was a complete idiot when it comes to GIMP. Today, after many hours of practice, reading, and watching tutorials, I am proud to say I am an incomplete idiot.

Image


Top
 Post subject: Re: Template weirdness[SOLVED]
PostPosted: Mon Sep 05, 2016 10:39 am  (#22) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14207
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
Sasquatch wrote:
You can also open the templaterc file and edit it. This is actually quicker if you want to do a bunch of changes.

This is how it looks with the default background fill;
(GimpTemplate "*********"
    (width 360)
    (height 360)
    (unit pixels)
    (xresolution 300.000000)
    (yresolution 300.000000)
    (resolution-unit inches)
    (image-type rgb)
    (fill-type background-fill)
    (comment "Created with GIMP"))

And after changing it to transparency via the template dialog.
(GimpTemplate "************"
    (width 2560)
    (height 1440)
    (unit pixels)
    (xresolution 300.000000)
    (yresolution 300.000000)
    (resolution-unit inches)
    (image-type rgb)
    (fill-type transparent-fill)
    (comment "Created with GIMP"))
I had tried editing this before on my other computer. But I destroyed all the templates because I didn't use the correct wording for the fill-type line. This file gets automatically overwritten when you close GIMP. Not only does it save changes but apparently it also eliminates erroneous data by removing the "broken" template. So if you put the wrong information in a line in the templaterc file GIMP will completely remove that template from the file. Definitely save a copy before you start tinkering.

I changed a couple of the templates via the dialog and exited GIMP to see how the templaterc file had changed. Then I used find/replace to change the background fill, resolution, and comment settings on all the templates at once. I reopened GIMP and voila! All the templates are there and set to the proper settings.

It still baffles me that GIMP has no problem saving the resolution, the image size, and the comment when you create a new template but that it won't save the transparent fill. Clearly it knows how to save a transparent fill. Anyhow, my OCD is happy now that all my templates match my default settings.

Seems as though you came up with a workaround.
I knew there had to be some kind of file that kept this information.
I would have never thought to edit the templaterc file.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Template weirdness[SOLVED]
PostPosted: Mon Sep 05, 2016 11:07 am  (#23) 
Offline
GimpChat Member

Joined: Jul 17, 2016
Posts: 293
Location: Arlington, TX
Wallace wrote:
I knew there had to be some kind of file that kept this information.
I would have never thought to edit the templaterc file.

I just stumbled across it because I had been tinkering with that curves file and started looking at the other files in the folder. But I couldn't get it right until Odin pointed me to the Template dialog so I could see how it was supposed to look.

Of course, now that I know about that dialog I probably won't need to edit the file again. From now on I'll create templates in the dialog. From there it lets you save the transparency.

_________________
Just a short while ago I was a complete idiot when it comes to GIMP. Today, after many hours of practice, reading, and watching tutorials, I am proud to say I am an incomplete idiot.

Image


Top
 Post subject: Re: Template weirdness[SOLVED]
PostPosted: Mon Sep 05, 2016 11:19 am  (#24) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14207
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
Sasquatch wrote:
I just stumbled across it because I had been tinkering with that curves file and started looking at the other files in the folder.
But I couldn't get it right until Odin pointed me to the Template dialog so I could see how it was supposed to look.

Of course,
now that I know about that dialog I probably won't need to edit the file again.
From now on I'll create templates in the dialog.
From there it lets you save the transparency.

:coolthup

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group