GIMP Chat
http://gimpchat.com/

Transparent Frame
http://gimpchat.com/viewtopic.php?f=8&t=18264
Page 1 of 1

Author:  Yose1C [ Thu Apr 23, 2020 6:16 pm ]
Post subject:  Transparent Frame

GIMP Version: 2.8.14
Operating System: Windows
OS Version: Windows 10
GIMP Experience: New User



Have a Word document with some pictures. Going to convert it to epub format via Calibre. They advise that pictures should be used with “In Line with Text”. That works well with some of the pictures but not so well with others. With the others I want to use “Square” which places the picture in the middle of the paragraph that is talking about it. Regardless of how much distance I specify to be used between the text and picture, HTML ignores it and puts the text right up against the picture. This makes it hard to read and looks bad.
My possible solution is to put a transparent frame around the picture thus creating what appears to be a space between the text and picture.
Can someone please give me precise instructions on how to create a transparent frame around a picture?

Author:  Tas_mania [ Fri Apr 24, 2020 12:00 am ]
Post subject:  Re: Transparent Frame

What could work is to export the document as a PDF and then use a free online 'pdf to epub' converter.

I have never done this but it may save a lot of time.

Author:  rich2005 [ Fri Apr 24, 2020 2:23 am ]
Post subject:  Re: Transparent Frame

Really using Gimp 2.8? The screenshots are 2.8 but Gimp 2.10 is almost the same.

If you need transparency, best that the image has an alpha channel. Layer menu -> Transparency -> Add Alpha channel

Then Image -> Canvas size (1) and set a new size to suit. Center the image in the new size (2) Set resize layers to all layers (3) Ok that and out.

Attachment:
01-border.jpg
01-border.jpg [ 204.26 KiB | Viewed 2471 times ]


Exporting. For a transparent border export to a png. Note using jpeg loses any transparency (replaced by current BG colour)

Attachment:
02-border.jpg
02-border.jpg [ 207.34 KiB | Viewed 2471 times ]

Author:  ofnuts [ Fri Apr 24, 2020 3:39 am ]
Post subject:  Re: Transparent Frame

Another solution (possibly works in 2.8, too):

* Start the Crop tool, and tick the "Allow growing" , this uncovers the "Fill with" selector that you set to "Transparency".
* In your image window, make the crop shape outside the canvas (which is possible due to "Allow growing"):

Attachment:
Crop1.jpg
Crop1.jpg [ 47.78 KiB | Viewed 2461 times ]


* The transparency is added around the current image, there is no need to add an alpha channel:

Attachment:
Crop2.jpg
Crop2.jpg [ 49.61 KiB | Viewed 2461 times ]


* Export to some format that supports transparency of course.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/