Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to pad an image with extra transparent border
#8
(01-21-2024, 04:25 PM)rinaldop Wrote: Can you show me how to take the original 420 object and shrink it down by 1 pixel each time and pad the open space with a transparent background producing 420 images? Then I can reverse them with this technique.

This is my ultimate goal, 420 times 

I have run out of "easy" ideas for Gimp. (needs an expert )

A little modified plugin attached, duplicate-shift.py (zipped, unzip and put in your User plug-ins folder)
It registers in the Tools menu as dupshift
Apply it and it makes a duplicate layer. 
Then offsets from the left by a pixel, the same as Layer -> Transform -> Offset 
It keeps transparency and the canvas size.

420 layers ??? You will need to repeat the plugin another 419 time Wink ctrl-F repeats the last used.  Just keep tapping away, might take 10 minutes.  I did the attached .xcf.gz while watching the TV.

Snags: Since it is an offset you truncate the right side and lose that little end bevel.


Attached Files
.zip   duplicate-shift.zip (Size: 468 bytes / Downloads: 232)
.gz   420-layers.xcf.gz (Size: 918.31 KB / Downloads: 83)
Reply


Messages In This Thread
RE: How to pad an image with extra transparent border - by rich2005 - 01-21-2024, 08:10 PM

Forum Jump: