PDA

View Full Version : Resize Image



FoxLeader
08-17-2007, 04:40 PM
Hello everyone,

I'm making a little app that's updating an XML file to be parsed by a PHP; that's for a client's portfolio, because he doesn't want to play with the code. It's easier for him like this. So, I used what Intrigued provided in the following post: http://indigorose.com/forums/showpost.php?p=104076&postcount=11 , but I'm not able to get it to work.

Here's the code for that specific action:

File.Run(workfolder.. "\\images\\mogrify.exe", "mogrify -resize 44x40 ".. "image1_th"..currentimage1name.Extension, "", -1, true)
--the variable "workfolder" should be something like this: "C:\Users\FoxLeader\Desktop\Portfolioroot" and "currentimage1name.Extension" should be either .png , .jpg or anything like this.
--In his exemple, Intrigued gave the following:
File.Run(CWF.. "\\mogrify.exe", "mogrify -resize 256x256 "..sFileName, "", SW_MINIMIZE, true)
output enhanced with AMS Code Pretty (http://www.indigorose.com/forums/showthread.php?t=19409)


Anyone has an idea?
Thanks, FoxLeader

Edit: A little more precisions:
1. I copy the *exe in the working folder
2. I proceed with resizing the 6 files (all in the same folder, their names varying only by the number and extension. Ex: image1_th.png, image4_th.jpg , etc...
3. I delete the exe.

How it's going: the *exe is sucessfully copied and deleted, but nothing happens for the resizing part.