Quantcast
Channel: magick Discussions Rss Feed
Viewing all 3693 articles
Browse latest View live

New Post: Convert SVG to PNG (or any other format) does not apply preserveAspectRatio

$
0
0
I just checked the ImageMagick source and I am unable to find preserveAspectRatio in the svg reader. The support for reading SVG files is not that good in ImageMagick. For Linux they recommend using inkscape (http://inkscape.org) and there is a download available for Windows. The only problem with this is that they use GPL2 instead of the apache license. If you are not going to use this in a commercial application that should not be a problem.

New Post: Convert SVG to PNG (or any other format) does not apply preserveAspectRatio

$
0
0
Thanks for quick replay.

I have tried inkscape and it works fine (with preserveAspectRatio).
I have installed ImageMagick-6.8.6-Q16 x64 and Inkscape and when I run convert test.svg test.png from command line in ImageMagick folder the resulting raster image is good. I know that ImageMagick will use Inkscape for reading SVG if it is installed and it use it indeed but only from ImageMagick command line.

I thought that Magick.NET API will also use Inkscape for reading SVG, but when I run code that use Magick.NET to convert SVG to raster image, the result is the same - no preserveAspectRatio.

Am I wrong and Magick.NET will not use Inkscape for reading SVG or I'm doing something wrong in code?

New Post: Convert SVG to PNG (or any other format) does not apply preserveAspectRatio

$
0
0
The location of inkscape is probably not added to your %PATH%. You will get more detailed information when you use the SetLogEvents method of the MagickNET class. You should probably also set the Debug property of your MagickImage to true.

New Post: How get Total pages count ?

$
0
0
As subject there is a way to get total pages count of a file ? e.g. pdf or .tif ?
Thanks !

New Post: Convert SVG to PNG (or any other format) does not apply preserveAspectRatio

New Post: How get Total pages count ?

$
0
0
Do you mean you want to get the total number of pages without loading the whole file?

New Post: Error output when convert SVG to PNG?

New Post: How get Total pages count ?


New Post: How get Total pages count ?

$
0
0
At this moment this is not possible. I will have a method called ReadImages to the MagickImageInfo class.

New Post: How get Total pages count ?

$
0
0
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.

New Post: Error output when convert SVG to PNG?

New Post: Error output when convert SVG to PNG?

$
0
0
It works very good. Thank you very much

New Post: 64 bit does not work

$
0
0
I have been using MagickImage for about a year now. I have NEVER been able to get any of the 64 bit compiles to work. I always have to use the 32 bit version. This is really a big pain in the butt, because everything I use is 64 bit, EXCEPT MagickImage. When I try to use the 64 bit version, it always give me this error. I've spent honesty dozens of hours trying to find the solution, and NOTHING works. Does anyone here use the 64 bit version? What is the magic fairy dance required to get it to work?

Could not load file or assembly 'Magick.NET-x64' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: Could not load file or assembly 'Magick.NET-x64' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Magick.NET-x64' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


Stack Trace:


[BadImageFormatException: Could not load file or assembly 'Magick.NET-x64' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +523
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +1230
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +616
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +510
System.Reflection.Assembly.Load(String assemblyString) +352
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +501

[ConfigurationErrorsException: Could not load file or assembly 'Magick.NET-x64' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +1497
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +630
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +371
System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +327
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +565
System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +315
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath) +406
System.Web.Compilation.BuildManager.ExecutePreAppStart() +431
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1461

[HttpException (0x80004005): Could not load file or assembly 'Magick.NET-x64' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +1038
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +392
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +886


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18044

New Post: 64 bit does not work

$
0
0
You will receive a BadImageFormatException when you try to load a 64 bit version of Magick.NET in a 32bit application pool. You should disable the option 'enable 32 bit applications' in your application. You should also check your web application to make sure you target x64 instead of AnyCPU.

p.s. Magick.NET has only been available for 5 months, if you are a time traveler then please send me some investment advice.

New Post: Error output when convert SVG to PNG?

$
0
0
Just to be clear, you can use inkscape together with Magick.NET. When you install inkscape and add it to your %PATH% Magick.NET will use inkscape instead of it's internal SVG decoder.

New Post: Error output when convert SVG to PNG?

New Post: loading Magick.net into 3D Studio Max via Max Script

$
0
0
3Dstudio Max's Max Script has some dot net related functions which allow loading dotNEt Assemblies for us in 3D studio Max tools. I have had success loading JSON.NET dlls into Max Script in this manner. but the same command fails to load Magick.NET-x64.dll, at least form the directory I wish to load from.

I am a bit of a C# noob, so I am unsure how best to describe my issue.

the Max Script Command used is:

dotNet.loadAssembly "C:/Program Files/playdom/forge/external/Magick.NET-x64.dll"
the resulting Max Script error is:
-- Runtime error: dotNet runtime exception: Invalid directory on URL.
I have verified that all 3D studio Max and Win 7 is 64 bit, and that 3D Studio Max supports dotnet 4.0...

New Post: loading Magick.net into 3D Studio Max via Max Script

$
0
0
I t appears that 3D Studio Max does not support dotnet 4.0.

I was able to succeed using Magick.NET-6.8.6.801-Q16-x64-net20

New Post: loading Magick.net into 3D Studio Max via Max Script

New Post: Web Application Difficulties

$
0
0
Hi dlemstra

I am able to resizing the images or gifs files. But there here I have come across new problems of images getting squashed while resizing them. for eg an image of size 856750 when resized using the dll it is squashed I am resizing to (22090). I need the image quality should not lose and it should not squashed. Please help.
Viewing all 3693 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>