SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Addict
    Join Date
    Apr 2010
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Repositioning png images

    I have several hundred png images which consist of an item on a transparent background. All are, and need to be the same size.
    Is there any software that would allow me to batch process the png image so that the visible item moves a set amount of millimetres to the top and right?

    Thanks in advance

  2. #2
    SitePoint Mentor silver trophy
    Rubble's Avatar
    Join Date
    Dec 2005
    Location
    Cambridge, England
    Posts
    2,438
    Mentioned
    82 Post(s)
    Tagged
    3 Thread(s)
    You could probably do it with imagemagick - might need some lateral thinking!

  3. #3
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,617
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    irfanview offers batch processing for images. You can resize, crop, rename, flip/rotate, adjust color/brighness/contrast, plus several other operations.

    To access the batch settings, go to File > Batch Conversion/Rename.

    To see the resize/cropping tools, tick the "use advanced options (for bulk resize...)" option, and click the "Advanced" button next to it.
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  4. #4
    SitePoint Addict
    Join Date
    Apr 2010
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Irfanview seemed to work fine for the batch cropping and resizing. The only problem I had was that it changed my transparent background on my png images to black

  5. #5
    SitePoint Mentor silver trophy
    Rubble's Avatar
    Join Date
    Dec 2005
    Location
    Cambridge, England
    Posts
    2,438
    Mentioned
    82 Post(s)
    Tagged
    3 Thread(s)
    Have you looked at your images in any other software?

  6. #6
    Community Advisor silver trophybronze trophy
    dresden_phoenix's Avatar
    Join Date
    Jun 2008
    Location
    Madison, WI
    Posts
    2,821
    Mentioned
    34 Post(s)
    Tagged
    2 Thread(s)
    so that the visible item moves a set amount of millimetres
    that my be tough since web design in based on pixels. I would begin by figuring out how many pixels you need to offset the images by.


    Since all the images are the same size, and all the images need tome offset by the same amount you could RECORD an ACTION in PS ( WINDOWS>ACTION) where you nudge the one of the images into the desire position AND SAVE(i think). EXPORT the action as a PS droplet. For safety sake back up the pngs, then drag and drop them onto the PS droplet icon you just made.

    hope that helps

  7. #7
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,617
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Hlforr View Post
    Irfanview seemed to work fine for the batch cropping and resizing. The only problem I had was that it changed my transparent background on my png images to black
    Did you change the file type to PNG? By default, it is set to JPG.

    Also, next to the file type drop-down, there is an "options" button. You may need to tick the transparency box and adjust the compression as appropriate.
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •