Skip navigation
james.barber
Currently Being Moderated

Add white canvas to square images based on largest dimension - script?

Feb 6, 2013 8:13 AM

Hi,

 

I have a bunch of images already on white backgrounds in sizes such as;

 

1824 x 3804

1891 x 5246

1747 x 5089

 

etc.. basically a lot of different random image sizes..

 

I need to add white canvas to these images to square them based on their largest dimension.

 

For the third example above I can open the image in Fireworks and Modify -> Canvas -> Canvas Size then change the 1747 width to 5089, then I can set Modify -> Canvas -> Canvas Color to 'White'.

 

This achieves how I want the image to look, but with the different sizes of images I can't just save and batch these commands on them all.

 

How could I do this via batch process please..?

 

Is there a script I could create and is this difficult to do?

 

I tried doing a couple of commands then pasting them onto the clipboard from history, but coding was never really my strong point!

 

Thanks very much in advance!

 
Replies
  • Currently Being Moderated
    Feb 6, 2013 10:12 AM   in reply to james.barber

    This is definitely a task that one could write a script for, place in the application's Configuration > Commands folder, and then apply as part of a batch process. It would require a little custom scripting though, I believe. Cutting and pasting from the History clipboard wouldn't be quite enough.

     

    Are you creating thumbnails or full-size images?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points