 |
|
 |
Hey this is an awesome post...I'm doing something similar. Do you have any examples of a more complex command ie drop shadow? The examples (for the most part) are Unix style commands, and they differ slightly.www.ict.griffith.edu.au/anthony/graphics/imagick6/windows has a few examples of differences in commands if it's helpful for you or anyone else!
Thanks
CDUB
|
|
|
|
 |
|
 |
Hi,
Nice post!
I tried to use this in my project. But there is a problem, I can't install anything on server(while deploying my project). So is it possible to achieve the task without installing the ImageMagick exe?
Any help will be appreciated.
Thanks,
Sachin
|
|
|
|
 |
|
 |
Hello sachin,
Please check out the ***[update] section. I have updated the article. You can try imagemagick Binary version without installation [though I haven't tried it, but I think it should work]. But make sure that you have provided proper permission to your application.
Thanks and Regards - Arin
P.S: Rate this article if it helps you.
Arin
Mail: arinhere@gmail.com
http://blogs.msdn.com/coding4fun/archive/2008/04/16/8399645.aspx
|
|
|
|
 |
|
 |
yes it works, but the problem is that it doesn't work when I uninstall the imageMagick...
Is there any way arround to copy some dlls into project folder and make the application work?
|
|
|
|
 |
|
 |
If you want to use some basic operations of imagemagick then use magicknet.dll....but for more complex application follow as the instruction provided...
Arin
Mail: arinhere@gmail.com
http://blogs.msdn.com/coding4fun/archive/2008/04/16/8399645.aspx
|
|
|
|
 |
|
 |
Thanks for you reply.
I just want to use convert function(from one image format to other). Can you please let me know where can I found magicknet dll. It would be great help.
Thanks,
Sachin
|
|
|
|
 |
|
 |
Hello Sachin,
I have uploaded the MagickNet.dll with the article...please check this out and download it as you need.
and the following is the process to convert
MagickNet.Magick.Init()
Dim img As MagickNet.Image = New MagickNet.Image(source_file)
Dim sz As New System.Drawing.Size(150, 100)
img.Resize(sz)
img.Write(output_file)
MagickNet.Magick.Term()
Let me know if you have any more queries...
Thanks
Arin
Mail: arinhere@gmail.com
http://blogs.msdn.com/coding4fun/archive/2008/04/16/8399645.aspx
|
|
|
|
 |
|
 |
Hi,
I have used the below syntax to resize the image, but it is giving error
C:\>convert C:\GenerateThumb\images\DSCN5: -resize "200%" C
:\GenerateThumb\images\DSCN5.gif
convert: unable to open image `C:\GenerateThumb\images\DSCN5:': No such file or
directory @ blob.c/OpenBlob/2427.
convert: missing an image filename `C:\GenerateThumb\images\DSCN5.gif' @ convert
.c/ConvertImageCommand/2766.
Would you please provide me the syntax and example for resizing an gif file using MagickCMD.exe
--Thanks & regards
Veeresh
|
|
|
|
 |
|
 |
Hello,
"C:\GenerateThumb\images\DSCN5:" -- This is your provided imagepath...and I am not sure what kind of image that would be. There must be some extension for the image.
So please make sure of that.
One more thing. If you have installed imagemagick on your local system, then you can also check these command from command prompt...it will work
and here is the code for resizing
convert -resize 200% D:\tom-cruise.jpg D:\katie.png
Let me know if you have any more queries
Thanks
Arin
Mail: arinhere@gmail.com
http://blogs.msdn.com/coding4fun/archive/2008/04/16/8399645.aspx
|
|
|
|
 |
|
 |
Hi,
I want to resize my image using imagemagick convert command in the .net application.
I know the command, its 'convert a.png resize 100x50 b.jpg' , but I dont know how to use it in .net application.
Please help me with my query.
Waiting for reply.
Thanks & Regards,
Aakanksha
|
|
|
|
 |
|
 |
Hello,
The command line execution process is already there...
Dim proc As New Diagnostics.Process()
proc.StartInfo.Arguments = fileargs 'This will contain the command
proc.StartInfo.FileName = Server.MapPath("magick\convert.exe")
proc.StartInfo.UseShellExecute = False
proc.StartInfo.CreateNoWindow = True
proc.StartInfo.RedirectStandardOutput = False
proc.Start()
if anything goes wrong then check out the permission...if 2003 server then provide ASPNET and NETWORK permission for 2008 server.
check that out and let me know
Thanks - Arin
Rate the article if it helps you
Arin
Mail: arinhere@gmail.com
http://blogs.msdn.com/coding4fun/archive/2008/04/16/8399645.aspx
|
|
|
|
 |
|
 |
I am user the code, but when run in folder "convimg" empty -Not creat image in folder "convimg"
Please help me!
Thanks!!!
huuchau84
|
|
|
|
 |
|
 |
Hello huuchau84,
Make sure about the permission before executing the code as you are using an exe in the server. So you must provide full permission to it. Provide ASPNET permission to your application and check out the path of imagemagick. Once you confirm about it, I am sure that it will run.
Let me know if you have any more queries.
Thanks - Arin
Arin
Mail: arinhere@gmail.com
http://blogs.msdn.com/coding4fun/archive/2008/04/16/8399645.aspx
|
|
|
|
 |
|
 |
Thanks arinhere!!
I am user windowserver 2003 --> problems??
thanhs for Re!!!
|
|
|
|
 |
|
 |
nop....no problem at all....just use your remote desktop for server....locate the application folder->right click->security tab->add->advanced->find now->ASPNET->OK->in the permission section below select checkbox for all
and you are done...
If still you are facing the same...then let me know
Thanks
P.S: pleas rate this article if its help you
Arin
Mail: arinhere@gmail.com
http://blogs.msdn.com/coding4fun/archive/2008/04/16/8399645.aspx
|
|
|
|
 |
|
 |
Thank you so much!!!
|
|
|
|
 |
|
 |
Hi,
By using your sample application I have created application, where it will create thumbnail
I had requirement to generate a thumbnails in file server
In local application is able to generate thumbnails
When I am trying create thumbnail on file server it is not generating
Requirement:-
Applications server
File server
Application has to generate thumbnails of the file which is located in File server and store it in that file server
I am using impersonation to connect to the File server, I am able to check whether the file exists or not, and I am able to create file. but by using MagicCMD.exe I am not able to create thumbnails
Would you please help me to solve this problem
|
|
|
|
 |
|
 |
Hello alurv,
Most of the time we have faced this kind pf thing, is occurred because of permission. You have said about the problem but you haven't mentioned anything about the permission. Did you provide ASPNET permission to your application? As you have told, the application is running fine in your local system. So please check out permission level in the server. If you didn't provide ASPNET permission to your application then
please provide it, it will work.
Let me know if you have any more queries.
Thanks - Arin
Arin
Mail: arinhere@gmail.com
http://blogs.msdn.com/coding4fun/archive/2008/04/16/8399645.aspx
|
|
|
|
 |
|
 |
Hi,
Could you plz tell how are you generating thumbnails?? I have to create thumbnails in .net using imagemagick...
Plz reply soon..
Thanks.
|
|
|
|
 |
|
 |
Hello,
For generating thumbnail...there are 2 process....
convert -define jpeg:size=240x180 image.jpg -thumbnail 120x90 thumb.gif
and the easier is...simply resize the image to the thumbnail size
convert -resize 120x90 source.jpg result.jpg
and you are done...
Thanks - Arin
Rate the article if it helps you
Arin
Mail: arinhere@gmail.com
http://blogs.msdn.com/coding4fun/archive/2008/04/16/8399645.aspx
|
|
|
|
 |
|
 |
Thank you for your posting, ImageMagick is very helpful. I installed your source files and ran the application. I can see the dropdown options and the default image. However, when select an option, the default image vanishes and nothing else happens, no errors, or anything. Has anyone else experienced this? Is there something else I need to download and install. I thought I had ImageMagick installed properly. Do I need to add a reference to that dll? Thank you in advance.
Regards,
Gary
|
|
|
|
 |
|
 |
Hello Gary,
I have used ImageMagick successfully on server. First download and istall imagemagick on your server. You will find a exe file[MagickCmd.exe] in the imagemagick installation folder. Copy that exe and place it in your application folder. remember to provide ASPNET permission to your application and use imagemagick as I mentioned in the application. It will work.
Rate this post if it helps.
Thanks
Arin
Mail: arinhere@gmail.com
http://blogs.msdn.com/coding4fun/archive/2008/04/16/8399645.aspx
|
|
|
|
 |
|
 |
Arin:
Thank you for your reply. I solved my problem; it was a sharing problem. I needed modify security to give the ASP.NET Machine Account read/write access to the files so they could be modified/written/read by ASP.NET Machine Account.
Gary
Regards,
Gary
|
|
|
|
 |
|
 |
Hi,
I'm running the source code you have kindly downloaded but whenever I try to run any command I am getting an exit code of 4. I cannot seem to find a description of this exit code anywhere and am a bit stuck.
I have not amended any of your code - that is exactly what I'm running.
My OS is windows XP - not sure if this makes any difference.
Kind regards,
Nicki
|
|
|
|
 |
|
 |
Hello Nicki,
Can you provide the exact error you have got? Actually I didn't get what your problem is? So it will be better for me to suggest you something if you provide me the exact error you have got, and the steps you have followed starting from the installation of imagemagick.
Thanks and Regards - Arin
Arin
Mail: arinhere@gmail.com
http://blogs.msdn.com/coding4fun/archive/2008/04/16/8399645.aspx
|
|
|
|
 |