It is currently Sat Jun 29, 2024 1:58 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Transparent Frame
PostPosted: Thu Apr 23, 2020 6:16 pm  (#1) 
Offline
New Member

Joined: Apr 23, 2020
Posts: 1
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?


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Transparent Frame
PostPosted: Fri Apr 24, 2020 12:00 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
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.


Top
 Post subject: Re: Transparent Frame
PostPosted: Fri Apr 24, 2020 2:23 am  (#3) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2435
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 2469 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 2469 times ]

_________________
Image


Top
 Post subject: Re: Transparent Frame
PostPosted: Fri Apr 24, 2020 3:39 am  (#4) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4751
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 2459 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 2459 times ]


* Export to some format that supports transparency of course.

_________________
Image


Top
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Transparent background in screenshot

8

No new posts Attachment(s) Blank/transparent replaced by bg colour, why ?

2

No new posts How do I keep the outline smooth on transparent text GIF?

2

No new posts Unable to paint on transparent layer

1

No new posts Attachment(s) Creating transparent spots using patterns in GIMP

12



* Login  



Powered by phpBB3 © phpBB Group