Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to automate adding black pillars to create 16:9 aspect ratio images?
#1
Question 
I'm a first time poster so please excuse me if this is already answered, I tried to find the answer here and elsewhere but no success yet.

Basically my problem is that I'd like to use my photos as Google Chromecast wallpapers, but many of them (100+) are in aspect ratios (and in many different resolutions) that are not quite 16:9, and in these cases Chromecast just pan & scans the photo. There's no other way to display the whole images than reprocessing them to 16:9, but I don't want to do this manually.

Is there a way to somehow automate this on GIMP?

The process, when done manually, is as follows:
  - Use calculator to multiply height of image by 1.7777.... (result = New Width)
  - Go to Layer > Canvas size, input New Width (width and height fields unbound)
  - Click "Center"
  - Fill with background color selected
  - Click "Resize"
  - Export as JPG with "_Wide" added to filename before the dot

Exporting & saving the resulting image doesn't have to be a part of the automation, but would surely be handy.

I know there's a scripting subsection here too, if a script is the way forward here sorry for posting in the wrong place -- I just don't know really anything about the scripts. I have written some Visual Basic macros though for Excel   Smile

I'd be very grateful if someone could give me pointers! Any kind of method that would take away the manual calculation and canvas resizing would be terrific.

I have currently v. 2.10.10 on Windows 10.
Reply


Messages In This Thread
How to automate adding black pillars to create 16:9 aspect ratio images? - by Sosnovka Skydiver - 04-22-2020, 08:39 PM

Forum Jump: