Page 2 of 2

Re: Batch magnify from a folder to an another one

Posted: 2019-04-08T05:44:15-07:00
by kimono
@snibgo and @fmw42: Thanks for taking your time to solve this problem. When I want to execute this command line, I've got the following message:

Code: Select all

This app can’t run on your PC.
Access Denied.
I dowloaded both ImageMagick-7.0.8-39-Q16-x64-dll.exe static and dynamic version and have the same result.
I'll try to change some win10 authorizations...thanks for your help.

Re: Batch magnify from a folder to an another one

Posted: 2019-04-08T05:59:03-07:00
by snibgo
kimono wrote:This app can’t run on your PC.
This message is from Windows, not from IM.

An internet search suggests you may have 32-bit Windows but have installed the 64-bit version of IM.

Re: Batch magnify from a folder to an another one

Posted: 2019-04-08T07:23:16-07:00
by kimono
@snibgo: I tried the 32-bit version in win10 static and dynamic and it doesn't seem to work better (I will try to install win10 in another drive later).
I installed the version you suggested me on a PC with windows seven and I've got some progress.
Here's my command line:

Code: Select all

magick.exe mogrify -path Karatedo/KaratedoX2 -magnify *.png
I have this reply:

Code: Select all

mogrify: unable to open image *.png: invalid argument
With * space .png, I've got this:
Image

P.S: You can see/try my game here:
https://gamejolt.com/games/kimono/389531
The sprites are doubled sized with nearest neighbor and I want to try magnify (and rework on them) if the result is slightly better.

Re: Batch magnify from a folder to an another one

Posted: 2019-04-08T10:50:57-07:00
by fmw42
Are you running in Unix mode? If not, then your path is using unix syntax / and should be windows syntax \. Also you have a space between * and .png which should not be there.

Try

Code: Select all

magick.exe mogrify -path Karatedo\KaratedoX2 -magnify *.png
Please do not post images of your processing/errors. Copy and past into here, highlight and use the </> button to make into code.

Re: Batch magnify from a folder to an another one

Posted: 2019-04-08T11:36:54-07:00
by snibgo
kimono wrote:mogrify: unable to open image *.png: invalid argument
Do you have any png files in that directory? You seem to be in the root of C:. This is not a good place to put images.

Re: Batch magnify from a folder to an another one

Posted: 2019-04-09T02:08:03-07:00
by kimono
@fmw42: Thank you I managed to convert all the image from one folder to an another one. The topic is solved thank to you @fmw42 and snibgo, I owe you one :).

One last question: which command have the best result to shrink a pixelart image without having blurred pixels? Ex: I wish to resize an image at 70% of its original size and keep its colour palette.
Imagemagick will help me to gain tons of time with its batch function, thank you for this great software ;)

Re: Batch magnify from a folder to an another one

Posted: 2019-04-09T02:43:46-07:00
by snibgo
kimono wrote:which command have the best result to shrink a pixelart image without having blurred pixels? Ex: I wish to resize an image at 70% of its original size and keep its colour palette.
Try "-scale" or "-sample".