Resize canvas?

Stryfe01Stryfe01 Member Posts: 146
I just realized what has been causing so much of my collision problems. The artist gave me my sprites that were built in flash, but there is so much dead pixels around them. I have used Gimp and photoshop elements to re-size the canvas. This has rid me of the dead space and now my sprite does not collide 15 feet away, but is there a way to batch process the re-size? He says he does not know how, but it is causing me huge problems.

Comments

  • Stryfe01Stryfe01 Member Posts: 146
    no ideas guys?
  • JCFordJCFord Member Posts: 785
    You can set up batch resizing and cropping etc in Photoshop with Actions, but the image size and crop you want would need to be the same. I believe there are also 3rd party shareware apps that can do this, you would be best to search something like versiontracker.com
  • Stryfe01Stryfe01 Member Posts: 146
    cool will check it out. I did a few manually, but they were off and you can tell when you play the animation. It make a hug difference having those extra pixels gone.
  • goliathgoliath Member Posts: 1,440
    How many do you have to do?? I can't think of anything off the top of my head...
  • firemaplegamesfiremaplegames Member Posts: 3,211
    If I had to do that, I would do it like this:
    (This is basic, but I use regular Photoshop - not elements, so I don't know if they both have these capabilities)

    Open all the graphics at once in Photoshop. Create a new Photoshop document.

    Using the layers palette, Shift-Drag each individual document into the new one.

    You will now have one document with each graphic on its own layer, and if you shift-drag them, their registrations will stay correct.

    All of the layers will be visible, so you will be able to see the minimum size graphic that you will need to hold all the graphics.

    Now, take the rectangular marquee tool and make a selection as tight as possible around the graphics.
    Use the option key and the shift key to fine tune the selection.

    Once you have the tightest possible selection rectangle, select Crop from the Edit menu.

    Now, turn off the visibility of all the layers except one. Export for Web as PNG-24.

    Do this for all layers, one at a time.

    A little tedious, but it shouldn't take longer than 5 minutes.
Sign In or Register to comment.