IT Community - Software Programming, Web Development and Technical Support

ImageMagick MagickNet C# WebApplication

This is a discussion on ImageMagick MagickNet C# WebApplication within the C# Programming forums, part of the Software Development category; hi...i have attached the dll and also i sent a mail..to u.. let me know the feedback...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #21 (permalink)  
Old 10-10-2007, 02:41 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: ImageMagick MagickNet C# WebApplication

hi...i have attached the dll and also i sent a mail..to u..
let me know the feedback
Attached Files
File Type: zip MagickNet-dll .zip (58.4 KB, 202 views)
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)

Last edited by kingmaker : 10-10-2007 at 03:00 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #22 (permalink)  
Old 10-10-2007, 04:34 AM
chris chris is offline
D-Web Trainee
 
Join Date: Oct 2007
Posts: 15
chris is on a distinguished road
Default Re: ImageMagick MagickNet C# WebApplication

i can work with youre dll local but on production server i get

Exception off HRESULT: 0x8007007E

i installed local ImageMagick-6.3.6-1-Q16-windows-dll.exe
in C:\Program Files\ImageMagick-6.3.6-Q16

I also installed this on server in the same folder.
do i have to do a iisreset or anything?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 10-10-2007, 05:30 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: ImageMagick MagickNet C# WebApplication

is it? its working in my system and server also...I have used that in webservice in Windows 2003 server
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 10-10-2007, 05:31 AM
chris chris is offline
D-Web Trainee
 
Join Date: Oct 2007
Posts: 15
chris is on a distinguished road
Default Re: ImageMagick MagickNet C# WebApplication

when i check the dll with dependency walker on server it shows that the MagickNet.dll cant find DEVMGR.DLL
this dll is local and on production server in C:\WINDOWS\system32
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 10-10-2007, 05:54 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: ImageMagick MagickNet C# WebApplication

I didnt see any error in dependency walker ...DEVMGR.dll

i have tested in my dev and production its works fine
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)

Last edited by kingmaker : 10-10-2007 at 06:18 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26 (permalink)  
Old 10-10-2007, 06:03 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: ImageMagick MagickNet C# WebApplication

check ur mail..i have sent the dll and ImageMagick-6.3.5-9-Q16-windows-dll..check this
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)

Last edited by kingmaker : 10-10-2007 at 06:23 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #27 (permalink)  
Old 10-10-2007, 06:28 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Red face Re: ImageMagick MagickNet C# WebApplication

what version of server u have and windows update are done ?
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #28 (permalink)  
Old 10-10-2007, 07:42 AM
chris chris is offline
D-Web Trainee
 
Join Date: Oct 2007
Posts: 15
chris is on a distinguished road
Default Re: ImageMagick MagickNet C# WebApplication

It works now with youre attached dll and latest ImageMagick-6.3.6-1-Q16-windows-dll.exe installation. Strange enough but i had to do an iisreset and after that everything went fine. normaly iisreset isnt required.

thanks for youre help kingmaker!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #29 (permalink)  
Old 10-10-2007, 07:49 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: ImageMagick MagickNet C# WebApplication

Further Mail Conversation

Christian Held
Ok. I got it also working with the newest imagemagick version and youre first dll. Strange it didnt work the first time.

And again thank you very much for youre help and patience!


________________________________________
anand


i think i have sent that 6.3.6-1 version ...thats works for me

Christian Held

Thanks so much! As i said it works! I only wonder if it could also work with newest imagemagick version 6.3.6-1 ?

________________________________________
Von: anand
Christian Held


no need to iisreset...its works fine and i have tested

Christian Held
It works with the new dll and the older version of imagemagick. I had to do a iisreset.
Could it also work with 6.3.6-1 ?

________________________________________
Von: anand
Christian Held

hi,
the new dll and exe for installation are aTTACHED..

Christian Held
Hi

Thank you very much. I can use the dll but ive uninstalled ImageMagick-6.3.6-1-Q16-windows-dll.exe, ImageMagick-6.3.6-1-Q16-windows-dll.exe and now it doesnt work anymore. Which exe should i install Q16 or Q8 ?
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)

Last edited by kingmaker : 10-10-2007 at 08:11 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #30 (permalink)  
Old 10-12-2007, 02:49 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default ImageMagick MagickNet C# WebApplication

We have to implement the dll like

MagickNet.Magick.Init();
MagickNet.Image medImg = new MagickNet.Image(file + fileName);
medImg.Resize(new Size(100,100));
medImg.Write(file + filename);
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)

Last edited by kingmaker : 10-16-2007 at 01:33 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #31 (permalink)  
Old 10-16-2007, 01:32 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default ImageMagick MagickNet C# WebApplication

We can also use the ImageMagick image resizing function like


It will resize the image depending on the aspect ratio

System.Diagnostics.Process process1;
process1 = new System.Diagnostics.Process();
process1.EnableRaisingEvents = false;
string strCmdLine;
strCmdLine = "/C convert " + file + fileName + " -resize " + 100+ "x" + 100+ " " + ConfigurationManager.AppSettings["ImgPath"] + fileName;
process1.StartInfo.FileName="CMD";
process1.StartInfo.Arguments=strCmdLine;
process1.Start();
if (!process1.HasExited)
{
process1.WaitForExit();
}
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #32 (permalink)  
Old 11-14-2007, 06:59 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default ImageMagick MagickNet C# WebApplication

Hi all,

There is one issue with ImageMagick that is while i am converting the image using below command ..it is not converting the image as per the aspect ratio....

MagickNet.Image medImg = new MagickNet.Image(file + fileName);
medImg.Resize()

But when i use the CMD prompt it is working well
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #33 (permalink)  
Old 11-14-2007, 07:01 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: ImageMagick MagickNet C# WebApplication

This may be because of the DLL ...Please some one help me..........

I need to create using DLL not by the ImageMagick
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #34 (permalink)  
Old 11-14-2007, 07:03 AM
Anandavinayagam Anandavinayagam is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 131
Anandavinayagam is on a distinguished road
Default ImageMagick MagickNet C# WebApplication

Yes...I too trying to resolve the issue..Before you get the answer....Please let me know
__________________
The MOSS
Master of Solution Service
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #35 (permalink)  
Old 11-15-2007, 04:35 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: ImageMagick MagickNet C# WebApplication

Hey...


Use this DLL ...it resolves the issues of resize
Attached Files
File Type: zip ImageMagickNET.zip (44.1 KB, 88 views)
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #36 (permalink)  
Old 11-15-2007, 04:38 AM
Anandavinayagam Anandavinayagam is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 131
Anandavinayagam is on a distinguished road
Default ImageMagick MagickNet C# WebApplication

Hey ...great....I will test the DLL and send u the feedback...
__________________
The MOSS
Master of Solution Service
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #37 (permalink)  
Old 11-16-2007, 02:58 AM
Anandavinayagam Anandavinayagam is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 131
Anandavinayagam is on a distinguished road
Default Re: ImageMagick MagickNet C# WebApplication

hey kingmaker ,

Its works fine ...in my system XP ..in 2003 server i am getting the

System::Runtime::InteropServices::SEHException.
__________________
The MOSS
Master of Solution Service
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #38 (permalink)  
Old 11-16-2007, 03:01 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: ImageMagick MagickNet C# WebApplication

oh.....what kind of application u are using the ImageMagick DLL
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #39 (permalink)  
Old 11-16-2007, 03:02 AM
Anandavinayagam Anandavinayagam is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 131
Anandavinayagam is on a distinguished road
Default Re: ImageMagick MagickNet C# WebApplication

yeah ....using the DLL for Upload process...resizing thumbnail...like that
__________________
The MOSS
Master of Solution Service
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #40 (permalink)  
Old 11-16-2007, 03:04 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: ImageMagick MagickNet C# WebApplication

ok..web application(right) ....So the uploading may be having access rights...something like that
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/c-programming/3926-imagemagick-magicknet-c-webapplication.html
Posted By For Type Date
ImageMagick • View topic - MagickNet This thread Refback 03-28-2008 10:21 PM
ImageMagick • View topic - MagickNet This thread Refback 02-25-2008 01:46 AM
Software Development - C# Programming at DiscussWeb.com This thread Refback 02-21-2008 02:07 PM
ImageMagick • View topic - MagickNet This thread Refback 01-13-2008 11:43 AM
Stuffs: ImageMagick C#.NET This thread Refback 01-08-2008 03:15 PM
ImageMagick • View topic - MagickNet This thread Refback 12-25-2007 09:34 PM
ImageMagick • View topic - MagickNet This thread Refback 12-18-2007 06:45 AM
ImageMagick • View topic - MagickNet This thread Refback 12-09-2007 12:34 AM
ImageMagick • View topic - MagickNet This thread Refback 12-06-2007 12:16 PM