Batch magnify from a folder to an another one [solved]

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
kimono
Posts: 11
Joined: 2019-04-01T01:40:36-07:00
Authentication code: 1152

Re: Batch magnify from a folder to an another one

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Batch magnify from a folder to an another one

Post 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.
snibgo's IM pages: im.snibgo.com
kimono
Posts: 11
Joined: 2019-04-01T01:40:36-07:00
Authentication code: 1152

Re: Batch magnify from a folder to an another one

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Batch magnify from a folder to an another one

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Batch magnify from a folder to an another one

Post 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.
snibgo's IM pages: im.snibgo.com
kimono
Posts: 11
Joined: 2019-04-01T01:40:36-07:00
Authentication code: 1152

Re: Batch magnify from a folder to an another one

Post 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 ;)
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Batch magnify from a folder to an another one

Post 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".
snibgo's IM pages: im.snibgo.com
Post Reply