Suppose these are 9 pieces I made using slice tools but how to save them with the size of whole image or save at different layer

I want to make a puzzle game in which there are 9 pieces and what I want to achieve is slicing a simple image into 9 parts ( it can of different sizes ) in Photoshop or any Adobe tool and then transferring each image to a different layer so that I can just hide or show a layer to display a piece of the puzzle. Also, I searched on the Internet that it's hard to achieve so if there is an option to save those pieces with the size of actual image with extra transparent pixel data then it will also work. For eg. a 90 X 90-pixel image is divided into 9 pieces of 30 X 30 each, so what I want is those 30 X 30 images should have a size of 90 X 90 with 30 X 30 colored pixels and others should be transparent so that I can import those images again in photoshop and then convert them to layer and then achieve that layer hiding game for puzzles. I hope I explained my question well. Please help.

  • Sounds like a job for imagemagic – joojaa Jun 7 '20 at 12:48
  • Would a manual method work for you? If so, you could use the rectangle select tool to make a selection of each slice. With snapping on, it will snap to the bounds of the slice. Then Ctrl+Shift+J will make a New Layer Via Cut. – Billy Kerr Jun 7 '20 at 15:28
  • @BillyKerr Thanks for this solution, at least it is working. – cool gamer Jun 10 '20 at 14:06
  • @joojaa Is there an easy way to do same thing with ImageMagick, like what BillyKerr suggested. I tried Imagemagick but don't know how to use it since there are no visual tools visible here. So any tutorial will help that can help me achieve the same thing without any extra effort, otherwise, this Manual method is also fine for me. Again thanks to both of you. – cool gamer Jun 10 '20 at 14:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.