Search found 4 matches
- 2016-12-11T11:46:57-07:00
- Forum: Developers
- Topic: Cut big images in small ones for sprites
- Replies: 6
- Views: 11407
Re: Cut big images in small ones for sprites
I tested and it does not work. I do not believe it can be fixed. It is not a bug. It is just the way mogrify works. http://www.imagemagick.org/Usage/crop/#crop_tile Eu acho que encontrei a solução.Olha esse exemplo! Vou ver se acerto! @echo off ren *.bmp *.bm2 mogrify -flop *.bm2 mogrify -rotate 2 ...
- 2016-12-11T09:42:18-07:00
- Forum: Developers
- Topic: Cut big images in small ones for sprites
- Replies: 6
- Views: 11407
Re: Cut big images in small ones for sprites
fmw42 wrote:I tested and it does not work. I do not believe it can be fixed. It is not a bug. It is just the way mogrify works.
http://www.imagemagick.org/Usage/crop/#crop_tile
Eu acho que encontrei a solução.Olha esse exemplo! Vou ver se acerto!
- 2016-12-10T17:07:27-07:00
- Forum: Developers
- Topic: Cut big images in small ones for sprites
- Replies: 6
- Views: 11407
Re: Cut big images in small ones for sprites
I do not think mogrify allow -format to have anything but the suffix such as -format bmp. -format tells mogrify what format to use for output. Mogrify only processes one output per input. So you cannot get images such a from a multiple crop. So you need to write a script loop over each image and ...
- 2016-12-09T22:39:36-07:00
- Forum: Developers
- Topic: Cut big images in small ones for sprites
- Replies: 6
- Views: 11407
Cut big images in small ones for sprites
ren *.bmp *.bm2 mogrify -flop *.bm2 mogrify -rotate 270 *.bm2 mogrify.exe -format %02d.bmp -crop 32x32 *.bm2 del *.bm2 (optional) mogrify -rotate 90 *.bmp mogrify -flop *.bmp montage -geometry +0+0 -tile 100x1 *.bmp out.bmp I have problems doing this in a batch file, because in this command mogrify ...