Quantcast
Channel: magick Issue Tracker Rss Feed
Viewing all 1011 articles
Browse latest View live

Commented Unassigned: Error on Deployment [1406]

$
0
0
Hi,

I'm trying to move a solution on an IIS server, however when running, I get the following error:

System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.UnauthorizedAccessException: Access to the path 'C:\Windows\TEMP\Magick.NET.net40-client.7.0.0.0104\Magick.NET-Q16-x64.Native.dll' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at ImageMagick.NativeLibraryLoader.WriteAssembly(String tempFile)
at ImageMagick.NativeLibraryLoader.ExtractLibrary()
--- End of inner exception stack trace ---
at ImageMagick.MagickSettings.NativeMethods.X64.MagickSettings_Create()
at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
at ImageMagick.MagickSettings..ctor()

I appreciate your cooperation as my PC deployed without any problem.

And I deployed the Visual C ++ Redistributable x86 and x64

Regards!
Comments: Can you take a look at the 'AnyCPU' part in the documentation (https://magick.codeplex.com/documentation) and see if that resolves your issue? p.s. You no longer need to install the Visual C ++ Redistributable in the recent versions. And I would also advise you to upgrade to the most recent version.

Created Unassigned: Error reading TIF file [1407]

$
0
0
I am trying to convert some TIF files to PDF and ran into a problem with one of the files. I have added the file as an attachment here.

This is the exact error that I get,

> : Null count for "Tag 34026" (type 1, writecount -3, passcount 1). `_TIFFVSetField' @ error/tiff.c/TIFFErrors/565

This is the exact place where exception gets thrown,

```
using(MagickImage image = new MagickImage("STREAM CONTAINING TIF FILE CONTENT"))
{
// Do something with the file
}
```

NuGet Package details:
> <package id="Magick.NET-Q8-AnyCPU" version="7.0.2.400" targetFramework="net452" />

Any reasons on why this is happening and some possible workarounds for fixing the problem would be really appreciate.

Edited Unassigned: Error reading TIF file [1407]

$
0
0
I am trying to convert some TIF files to PDF and ran into a problem with one of the files. I have added the file as an attachment here.

This is the exact error that I get,

> : Null count for "Tag 34026" (type 1, writecount -3, passcount 1). `_TIFFVSetField' @ error/tiff.c/TIFFErrors/565

Under __RelatedExceptions__, I also see a number of statements similar to,

> Unknown field with tag 34030 (0x84ee) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/905

This is the exact place where exception gets thrown,

```
using(MagickImage image = new MagickImage("STREAM CONTAINING TIF FILE CONTENT"))
{
// Do something with the file
}
```

NuGet Package details:
> <package id="Magick.NET-Q8-AnyCPU" version="7.0.2.400" targetFramework="net452" />

Any reasons on why this is happening and some possible workarounds for fixing the problem would be really appreciate.

Commented Unassigned: Error reading TIF file [1407]

$
0
0
I am trying to convert some TIF files to PDF and ran into a problem with one of the files. I have added the file as an attachment here.

This is the exact error that I get,

> : Null count for "Tag 34026" (type 1, writecount -3, passcount 1). `_TIFFVSetField' @ error/tiff.c/TIFFErrors/565

Under __RelatedExceptions__, I also see a number of statements similar to,

> Unknown field with tag 34030 (0x84ee) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/905

This is the exact place where exception gets thrown,

```
using(MagickImage image = new MagickImage("STREAM CONTAINING TIF FILE CONTENT"))
{
// Do something with the file
}
```

NuGet Package details:
> <package id="Magick.NET-Q8-AnyCPU" version="7.0.2.400" targetFramework="net452" />

Any reasons on why this is happening and some possible workarounds for fixing the problem would be really appreciate.
Comments: Your tiff file contains invalid TIFF tags. Our tiff reader is very picky about them. You can however tell Magick.NET to ignore certain tags with the following code: ```C# using (MagickImage image = new MagickImage()) { /* Current version of Magick.NET */ MagickReadSettings settings = new MagickReadSettings(); settings.SetDefine(MagickFormat.Tiff, "ignore-tags", "34025, 34022, 34026"); /* Next version of Magick.NET */ MagickReadSettings settings = new MagickReadSettings(new TiffReadDefines() { IgnoreTags = new string[] { "34025", "34022", "34026" } }); image.Read("STREAM CONTAINING TIF FILE CONTENT", settings); // Do something with the file } ``` As you might have noticed there is also a small code block that will work in the next version of Magick.NET. It appears that I did not make it easy to set the tags to ignore so I just push a patch to make that easier.

Closed Unassigned: Error reading TIF file [1407]

$
0
0
I am trying to convert some TIF files to PDF and ran into a problem with one of the files. I have added the file as an attachment here.

This is the exact error that I get,

> : Null count for "Tag 34026" (type 1, writecount -3, passcount 1). `_TIFFVSetField' @ error/tiff.c/TIFFErrors/565

Under __RelatedExceptions__, I also see a number of statements similar to,

> Unknown field with tag 34030 (0x84ee) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/905

This is the exact place where exception gets thrown,

```
using(MagickImage image = new MagickImage("STREAM CONTAINING TIF FILE CONTENT"))
{
// Do something with the file
}
```

NuGet Package details:
> <package id="Magick.NET-Q8-AnyCPU" version="7.0.2.400" targetFramework="net452" />

Any reasons on why this is happening and some possible workarounds for fixing the problem would be really appreciate.

Commented Unassigned: Error reading TIF file [1407]

$
0
0
I am trying to convert some TIF files to PDF and ran into a problem with one of the files. I have added the file as an attachment here.

This is the exact error that I get,

> : Null count for "Tag 34026" (type 1, writecount -3, passcount 1). `_TIFFVSetField' @ error/tiff.c/TIFFErrors/565

Under __RelatedExceptions__, I also see a number of statements similar to,

> Unknown field with tag 34030 (0x84ee) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/905

This is the exact place where exception gets thrown,

```
using(MagickImage image = new MagickImage("STREAM CONTAINING TIF FILE CONTENT"))
{
// Do something with the file
}
```

NuGet Package details:
> <package id="Magick.NET-Q8-AnyCPU" version="7.0.2.400" targetFramework="net452" />

Any reasons on why this is happening and some possible workarounds for fixing the problem would be really appreciate.
Comments: Thanks @dlemstra. Is there a comprehensive list of invalid TIFF tags that is not supported by your TIFF reader ?

Commented Unassigned: Error reading TIF file [1407]

$
0
0
I am trying to convert some TIF files to PDF and ran into a problem with one of the files. I have added the file as an attachment here.

This is the exact error that I get,

> : Null count for "Tag 34026" (type 1, writecount -3, passcount 1). `_TIFFVSetField' @ error/tiff.c/TIFFErrors/565

Under __RelatedExceptions__, I also see a number of statements similar to,

> Unknown field with tag 34030 (0x84ee) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/905

This is the exact place where exception gets thrown,

```
using(MagickImage image = new MagickImage("STREAM CONTAINING TIF FILE CONTENT"))
{
// Do something with the file
}
```

NuGet Package details:
> <package id="Magick.NET-Q8-AnyCPU" version="7.0.2.400" targetFramework="net452" />

Any reasons on why this is happening and some possible workarounds for fixing the problem would be really appreciate.
Comments: It's not that the tags are not supported, those tags are not stored correctly. So I cannot give you a list of which tags are invalid as you call it.

Created Unassigned: MagickImage.Resize(new MagickGeometry([int])); crashes/hangs [1408]

$
0
0
I've been using v7.0.0.0101 where Resize worked quite good. Now with current verisons (tried the last 3) it hangs/crashes and I'm getting no response or whatever. Instead the monitor get's dark and the memory increases. "AdpativeResize" still works fine but I need to Resize.
Thanx in advance!

Commented Unassigned: MagickImage.Resize(new MagickGeometry([int])); crashes/hangs [1408]

$
0
0
I've been using v7.0.0.0101 where Resize worked quite good. Now with current verisons (tried the last 3) it hangs/crashes and I'm getting no response or whatever. Instead the monitor get's dark and the memory increases. "AdpativeResize" still works fine but I need to Resize.
Thanx in advance!
Comments: I am guessing that you have an AMD videocard. I was also experiencing this issue when I used 'Crimson Edition 16.8.2 Hotfix' downgrading to Crimson Edition 16.7.3 resolved the issue for me. You can also decide to disable OpenCL instead. There is a class called OpenCL that you can use for that.

Closed Unassigned: MagickImage.Resize(new MagickGeometry([int])); crashes/hangs [1408]

$
0
0
I've been using v7.0.0.0101 where Resize worked quite good. Now with current verisons (tried the last 3) it hangs/crashes and I'm getting no response or whatever. Instead the monitor get's dark and the memory increases. "AdpativeResize" still works fine but I need to Resize.
Thanx in advance!

Commented Unassigned: MagickImage.Resize(new MagickGeometry([int])); crashes/hangs [1408]

$
0
0
I've been using v7.0.0.0101 where Resize worked quite good. Now with current verisons (tried the last 3) it hangs/crashes and I'm getting no response or whatever. Instead the monitor get's dark and the memory increases. "AdpativeResize" still works fine but I need to Resize.
Thanx in advance!
Comments: Thanks for your fast reply. No, I do not have an AMD videocard. It's on a laptop with Intel HD. Meanwhile I found a solution: What doesn't work for me is using Resize with MagickGeometry or with Percentage. But Resize([int], [int]) works fine. I also notices that MagickImage.ResolutionX and MagickImage.ResolutionY is not exposed/existent anymore. Could it be that this is also used internally and therefore causing the issue? I'm just guessing here. Thanks a lot for this great project. Very much appreciated!

Commented Unassigned: MagickImage.Resize(new MagickGeometry([int])); crashes/hangs [1408]

$
0
0
I've been using v7.0.0.0101 where Resize worked quite good. Now with current verisons (tried the last 3) it hangs/crashes and I'm getting no response or whatever. Instead the monitor get's dark and the memory increases. "AdpativeResize" still works fine but I need to Resize.
Thanx in advance!
Comments: What is the code that you are executing with MagickGeometry or with Percentage? I have unit tests that pass without any problems: https://github.com/dlemstra/Magick.NET/blob/8092766620ba7edaadac0c218293e013ebd49e09/Magick.NET.Tests/Core/MagickImageTests.cs#L2785. ResolutionX and ResolutionY have been replaced with the Density property.

Commented Unassigned: Error on Deployment [1406]

$
0
0
Hi,

I'm trying to move a solution on an IIS server, however when running, I get the following error:

System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.UnauthorizedAccessException: Access to the path 'C:\Windows\TEMP\Magick.NET.net40-client.7.0.0.0104\Magick.NET-Q16-x64.Native.dll' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at ImageMagick.NativeLibraryLoader.WriteAssembly(String tempFile)
at ImageMagick.NativeLibraryLoader.ExtractLibrary()
--- End of inner exception stack trace ---
at ImageMagick.MagickSettings.NativeMethods.X64.MagickSettings_Create()
at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
at ImageMagick.MagickSettings..ctor()

I appreciate your cooperation as my PC deployed without any problem.

And I deployed the Visual C ++ Redistributable x86 and x64

Regards!
Comments: Can you let me know if your issue is resolved so I can close it?

Commented Unassigned: MagickImage.Resize(new MagickGeometry([int])); crashes/hangs [1408]

$
0
0
I've been using v7.0.0.0101 where Resize worked quite good. Now with current verisons (tried the last 3) it hangs/crashes and I'm getting no response or whatever. Instead the monitor get's dark and the memory increases. "AdpativeResize" still works fine but I need to Resize.
Thanx in advance!
Comments: There's nothing special with executing the resize method. I'm doing it like this: ``` var tiffPage = currentImage.Clone(); tiffPage.Format = MagickFormat.Bmp; tiffPage.Depth = 8; tiffPage.Density = new Density(72.0); tiffPage.Resample(new PointD(72.0)); tiffPage.Resize(new MagickGeometry(1280)); ``` Meanwhile I found a solution: I've been using the x64 dll-version and now that I've switched to the AnyCpu-dll it works... So that seems to be a very special situation on my site that will cause this behavior. Thanks for pointing out the replacement with Density.

Closed Unassigned: Error on Deployment [1406]

$
0
0
Hi,

I'm trying to move a solution on an IIS server, however when running, I get the following error:

System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.UnauthorizedAccessException: Access to the path 'C:\Windows\TEMP\Magick.NET.net40-client.7.0.0.0104\Magick.NET-Q16-x64.Native.dll' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at ImageMagick.NativeLibraryLoader.WriteAssembly(String tempFile)
at ImageMagick.NativeLibraryLoader.ExtractLibrary()
--- End of inner exception stack trace ---
at ImageMagick.MagickSettings.NativeMethods.X64.MagickSettings_Create()
at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
at ImageMagick.MagickSettings..ctor()

I appreciate your cooperation as my PC deployed without any problem.

And I deployed the Visual C ++ Redistributable x86 and x64

Regards!

Commented Unassigned: Mono support is missing [1359]

$
0
0
If I understand well, because of the nature of accessing embedded dlls it is impossible to use the mono dllmap feature to use the library on mono.

If there would be a version which would ship the dlls as non-embedded files, it would be simple to map to the apropriate .so files on Linux.
Comments: The next OS that I will try to get it running on will be Ubuntu. Hope to do that this year.

Created Unassigned: VS Debug Disabling when SetTempDirectory was called [1409]

$
0
0
I am use MagickAnyCPU only for loading images in different formats, init code is:
```
StartupPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

string TempDirectory = Path.Combine(StartupPath, "Temp");
if (!Directory.Exists(TempDirectory))
Directory.CreateDirectory(TempDirectory);

MagickAnyCPU.CacheDirectory = StartupPath;
MagickAnyCPU.HasSharedCacheDirectory = false;
MagickNET.SetTempDirectory(TempDirectory);

/* int[] A = new int[1]; //ONLY FOR TEST!!!
A[4] = 0; */
```
as result if program have some exception before "MagickNET.SetTempDirectory(TempDirectory);", debug stopped at line with it, else (after SetTempDirectory) - see attached ScreenShot.

Edited Unassigned: VS Debug Disabling when SetTempDirectory was called [1409]

$
0
0
I am use latest Magick.NET-16-AnyCPU library only for loading images in different formats, init code is:
```
StartupPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

string TempDirectory = Path.Combine(StartupPath, "Temp");
if (!Directory.Exists(TempDirectory))
Directory.CreateDirectory(TempDirectory);

MagickAnyCPU.CacheDirectory = StartupPath;
MagickAnyCPU.HasSharedCacheDirectory = false;
MagickNET.SetTempDirectory(TempDirectory);

/* int[] A = new int[1]; //VS stop Debug there!!!
A[4] = 0; */
```
as result if program have some exception before "MagickNET.SetTempDirectory(TempDirectory);", debug stopped at line with it, else (after SetTempDirectory) - see attached ScreenShot.

Commented Unassigned: VS Debug Disabling when SetTempDirectory was called [1409]

$
0
0
I am use latest Magick.NET-16-AnyCPU library only for loading images in different formats, init code is:
```
StartupPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

string TempDirectory = Path.Combine(StartupPath, "Temp");
if (!Directory.Exists(TempDirectory))
Directory.CreateDirectory(TempDirectory);

MagickAnyCPU.CacheDirectory = StartupPath;
MagickAnyCPU.HasSharedCacheDirectory = false;
MagickNET.SetTempDirectory(TempDirectory);

/* int[] A = new int[1]; //VS stop Debug there!!!
A[4] = 0; */
```
as result if program have some exception before "MagickNET.SetTempDirectory(TempDirectory);", debug stopped at line with it, else (after SetTempDirectory) - see attached ScreenShot.
Comments: That method is the first time something in the embedded library will be called. I am guessing that you don't have write permissions for your StartupPath. Can you check if you have write permissions in that folder?

Commented Unassigned: VS Debug Disabling when SetTempDirectory was called [1409]

$
0
0
I am use latest Magick.NET-16-AnyCPU library only for loading images in different formats, init code is:
```
StartupPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

string TempDirectory = Path.Combine(StartupPath, "Temp");
if (!Directory.Exists(TempDirectory))
Directory.CreateDirectory(TempDirectory);

MagickAnyCPU.CacheDirectory = StartupPath;
MagickAnyCPU.HasSharedCacheDirectory = false;
MagickNET.SetTempDirectory(TempDirectory);

/* int[] A = new int[1]; //VS stop Debug there!!!
A[4] = 0; */
```
as result if program have some exception before "MagickNET.SetTempDirectory(TempDirectory);", debug stopped at line with it, else (after SetTempDirectory) - see attached ScreenShot.
Comments: Yes, I have full rights. Now I try use .NET 2.0 and 4.0 versions. I have problem only with .NET 2.0 (libs from "net20" folder). With "net40-client" I am don't have problems, but I want use .NET 2.0 for better compatibility. Test Code: ``` using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; using ImageMagick; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); MagickNET.SetTempDirectory(Path.GetTempPath()); } private void Form1_Click(object sender, EventArgs e) { int[] A = new int[1]; A[100] = 12345; } } } ```
Viewing all 1011 articles
Browse latest View live