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

New Post: Append Images

$
0
0
Hi,
I want to display a pdf document on web browser. I have converted each page of the pdf to jpeg image, now I want to append these images to display on the browser. How can I append these images?? I tried composite function but could not figure out the geometry correctly.

Thanks.

New Post: Append Images

$
0
0
What do you mean by append? You want to output the pages of the pdf into one image?

New Post: Append Images

New Post: GUI for Magick.NET

$
0
0
What do you mean by 'scribble operations'?

New Post: Append Images

New Post: PDF->PNG conversion failing

New Post: Image conversion in web app

$
0
0
There is no easy way to do this with the examples you provided. You will have to write some code that calculates the edges of the image. My example shows how you can access the individual pixels of an image. You could use this to determine the edges of your images.

New Post: GUI for Magick.NET

$
0
0
I mean freehand editing operations like underlining or encircling some part of the document. Like the one available in Adobe Acrobat reader, i.e. a pen like tool to be controlled by mouse.

New Post: Append Images

$
0
0
AppendVertically() is not recognized by the compiler, is there any other reference to made to use this function. I have already installed 32 bit GhostScript.

New Post: Append Images

$
0
0
I forgot to mention that you need to download the latest release.

New Post: PDF->PNG conversion failing

$
0
0
@petersunde - Thanks for the pointer and @dlemestra for the wiki page.
Spot on, the problem was a 64 bit version of GhostScript.

New Post: Append Images

$
0
0
Thanks for the help, well I got it working by displaying all the individual images.

New Post: How to generate images with formatted text

$
0
0
Dim img As ImageMagick.MagickImage = New MagickImage(path)
img.Draw(New DrawableFont("Comic Sans MS", FontStyleType.Italic, FontWeight.Weight400, FontStretch.Normal))
img.Draw(New DrawableFillColor(New MagickColor(10, 10, 10)))
img.Draw(New DrawableText(50, 15, "Shafi"))
img.Write(outputFilename)

The code above is generating image, but text is drawing as plain text only, the DrawableFont and DrawableFillColor is not at all reflecting.

Can someone help me out, I want to generate formatted text based Images.

New Post: How to generate images with formatted text

$
0
0
If you want to do multiple draw operations you should use the overload of Draw that accepts an IEnumerable<DrawableBase>. Below is an example in C#.
using (MagickImage img = new MagickImage(path))
{
    List<DrawableBase> drawables = new List<DrawableBase>();
    drawables.Add(new DrawableFont("Comic Sans Is Evil", FontStyleType.Italic, FontWeight.Weight400, FontStretch.Normal));
    drawables.Add(new DrawableFillColor(new MagickColor(10, 10, 10)));
    drawables.Add(new DrawableText(50, 15, "Shafi"));
    img.Draw(drawables);
}

New Post: How to generate images with formatted text

$
0
0
Hi dlemstra,

Thanks for your quick reply. Your reply helped me greatly. Thanks again for your support.

By the way - you puzzled me by referring the font "Comic Sans" as Evil. :)

New Post: Web Application Difficulties

$
0
0
Thanks for your reply dlemstra.

I have tried many things to get the deployed web application working. I have disabled 32-bit mode web applications and replaced the DLLs with the x64 DLLs directly from the zip file (I downloaded the latest versions of Q8 today). I still get the BadImageFormatException when running the application on the server.

I tried poking around in ildasm at the manifest and everything checks out as far as ILONLY vs 32BITREQUIRED. Is there any way to verify the target architecture of the native DLLs?

Can you offer any additional advice?

New Post: Web Application Difficulties

$
0
0
What is the complete name of the zipfile you downloaded?

New Post: Web Application Difficulties

$
0
0
I downloaded Magick.NET-6.8.5.402-Q8-x64-net40-client.zip and Magick.NET.Web-6.8.5.402-x64-net40.zip.

I am more comfortable with Mono+Apache.. so this might sound like an odd question. Is there any chance that IIS has cached some of the DLLs?

New Post: Web Application Difficulties

$
0
0
I used dumpbin to verify that all the dll's in the zip files you downloaded are x64. Did you install the x64 version of Visual C++ Redistributable for Visual Studio 2012? Which version of IIS are you using? And would you mind posting a more detail exception message that includes a stacktrace?

New Post: Web Application Difficulties

$
0
0
I have the x64 version of the Visual C++ Redistributable installed. I am using IIS 7.5 on Windows 7 x64.

Here is the load trace:
Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  c:\windows\system32\inetsrv\w3wp.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = NT AUTHORITY\SYSTEM
LOG: DisplayName = AssetTracker
 (Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: AssetTracker | Domain ID: 3
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///C:/ETAD/General/arossign/release/AssetTracker/
LOG: Initial PrivatePath = C:\ETAD\General\arossign\release\AssetTracker\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\ETAD\General\arossign\release\AssetTracker\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/7772d491/8555bc9/AssetTracker.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/7772d491/8555bc9/AssetTracker/AssetTracker.DLL.
LOG: Attempting download of new URL file:///C:/ETAD/General/arossign/release/AssetTracker/bin/AssetTracker.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
Here is the stack trace:
[BadImageFormatException: Could not load file or assembly 'AssetTracker' 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.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +210
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +242
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +17
   System.Reflection.Assembly.Load(String assemblyString) +35
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +122

[ConfigurationErrorsException: Could not load file or assembly 'AssetTracker' 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) +12761078
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +503
   System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +142
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +334
   System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath) +203
   System.Web.Compilation.BuildManager.ExecutePreAppStart() +152
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1151

[HttpException (0x80004005): Could not load file or assembly 'AssetTracker' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12881540
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12722601
Just to be sure, I re-copied the DLLs directly from the zip files.
Viewing all 3693 articles
Browse latest View live


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