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

Commented Unassigned: Trying to convert svg content into pdf [1391]

$
0
0
I am trying to convert SVG content into pdf, svg content has one png base 64 content which is not being visible after converting to pdf.

Please help me sort it out this issue. The svg content is attached. I am using Magick.NET-x64 7.0.0.0.

Comments: Thanks for replying. What do you mean by bug in librsvg? You mean the svg which I have attached?

Commented Unassigned: MagickImage function not executed on server... [1396]

$
0
0
Hi,
i have this issue:

1) I've downloaded Magick.NET-Q16-AnyCPU throught NUGET in VS2010.
2) I've created this function for read remote svg and convert it into itextSharp.text.Image object as below:

```
iTextSharp.text.Image headeImage = null;

using (MagickImage image= new MagickImage(linksvgremote))
{
Percentage percent = new Percentage(55);
image.Resize(percent);
headeImage = iTextSharp.text.Image.GetInstance(image.ToByteArray(MagickFormat.Png));

}
```

Javascript function is:

```
ApriDialogCaricamento();

var datiInput = {};

datiInput.idTipo = idtipo;
datiInput.clearEngine = clearengine;
datiInput.nomeFileSvg = numfile;

var jsonData = JSON.stringify(datiInput);

$.ajax({
type: "POST",
url: "handlers/generaDatiTecniciPDF.ashx",
data: jsonData,
contentType: "application/json; charset=utf-8",
dataType: "blob",
success: function (data) {
ChiudiDialogCaricamento();
var url = window.URL || window.webkitURL;
window.open(url.createObjectURL(data));
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
ChiudiDialogCaricamento();
alert("Ci sono stati problemi durante la ricezione dei dati");
}
});
```

It's work fine local but when i have uploaded on iis server the javascript function return this string:

__failed to load resource the server responded with a status of 500 (internal server error)__

It's would say that the problem is in function descripted above.... i know it because if i comment it it works but not generate the svg-converted-image .

How can i resolve it on my server?

Thanks

Cristian
Comments: Have you tried setting `MagickAnyCPU.CacheDirectory` to another folder? It might be possible that you cannot write to the current folder in your production environment.

Commented Unassigned: Error 'The type initializer for 'X86' threw an exception.' [1395]

$
0
0
We are trying to create a Windows Service which deals with Adobe image files and converts them to Thumbnails.

The service runs fine on our test machines which run Windows 7 but when we run the same service on our utils box which runs unders Windows Server 2012 it throws an error 'The type initializer for 'X86' threw an exception.'

We are using the multi CPU DLL in our project but we are unable to install Magick as we did in our test machines by running Configure.sln under Visual Studio 2013 and compiling to produce an install process.

Is there another way to install Magick on our server which doesn't have Visual Studio or are we missing some other process?
Comments: Are you using the AnyCPU version of Magick.NET? It might help if you change the following location: `MagickAnyCPU.CacheDirectory`

Commented Unassigned: Trying to convert svg content into pdf [1391]

$
0
0
I am trying to convert SVG content into pdf, svg content has one png base 64 content which is not being visible after converting to pdf.

Please help me sort it out this issue. The svg content is attached. I am using Magick.NET-x64 7.0.0.0.

Comments: Librsvg is the internal library that is being used to read the SVG file. I will try and see if upgrading the library will resolve the issue.

Commented Unassigned: Trying to convert svg content into pdf [1391]

$
0
0
I am trying to convert SVG content into pdf, svg content has one png base 64 content which is not being visible after converting to pdf.

Please help me sort it out this issue. The svg content is attached. I am using Magick.NET-x64 7.0.0.0.

Comments: Thanks for the Clarification. :)

Commented Unassigned: MagickImage function not executed on server... [1396]

$
0
0
Hi,
i have this issue:

1) I've downloaded Magick.NET-Q16-AnyCPU throught NUGET in VS2010.
2) I've created this function for read remote svg and convert it into itextSharp.text.Image object as below:

```
iTextSharp.text.Image headeImage = null;

using (MagickImage image= new MagickImage(linksvgremote))
{
Percentage percent = new Percentage(55);
image.Resize(percent);
headeImage = iTextSharp.text.Image.GetInstance(image.ToByteArray(MagickFormat.Png));

}
```

Javascript function is:

```
ApriDialogCaricamento();

var datiInput = {};

datiInput.idTipo = idtipo;
datiInput.clearEngine = clearengine;
datiInput.nomeFileSvg = numfile;

var jsonData = JSON.stringify(datiInput);

$.ajax({
type: "POST",
url: "handlers/generaDatiTecniciPDF.ashx",
data: jsonData,
contentType: "application/json; charset=utf-8",
dataType: "blob",
success: function (data) {
ChiudiDialogCaricamento();
var url = window.URL || window.webkitURL;
window.open(url.createObjectURL(data));
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
ChiudiDialogCaricamento();
alert("Ci sono stati problemi durante la ricezione dei dati");
}
});
```

It's work fine local but when i have uploaded on iis server the javascript function return this string:

__failed to load resource the server responded with a status of 500 (internal server error)__

It's would say that the problem is in function descripted above.... i know it because if i comment it it works but not generate the svg-converted-image .

How can i resolve it on my server?

Thanks

Cristian
Comments: Yes!!! It works!!!! Thanks!

Closed Unassigned: MagickImage function not executed on server... [1396]

$
0
0
Hi,
i have this issue:

1) I've downloaded Magick.NET-Q16-AnyCPU throught NUGET in VS2010.
2) I've created this function for read remote svg and convert it into itextSharp.text.Image object as below:

```
iTextSharp.text.Image headeImage = null;

using (MagickImage image= new MagickImage(linksvgremote))
{
Percentage percent = new Percentage(55);
image.Resize(percent);
headeImage = iTextSharp.text.Image.GetInstance(image.ToByteArray(MagickFormat.Png));

}
```

Javascript function is:

```
ApriDialogCaricamento();

var datiInput = {};

datiInput.idTipo = idtipo;
datiInput.clearEngine = clearengine;
datiInput.nomeFileSvg = numfile;

var jsonData = JSON.stringify(datiInput);

$.ajax({
type: "POST",
url: "handlers/generaDatiTecniciPDF.ashx",
data: jsonData,
contentType: "application/json; charset=utf-8",
dataType: "blob",
success: function (data) {
ChiudiDialogCaricamento();
var url = window.URL || window.webkitURL;
window.open(url.createObjectURL(data));
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
ChiudiDialogCaricamento();
alert("Ci sono stati problemi durante la ricezione dei dati");
}
});
```

It's work fine local but when i have uploaded on iis server the javascript function return this string:

__failed to load resource the server responded with a status of 500 (internal server error)__

It's would say that the problem is in function descripted above.... i know it because if i comment it it works but not generate the svg-converted-image .

How can i resolve it on my server?

Thanks

Cristian

Commented Unassigned: NEF (Nikon raw) files support [1397]

$
0
0
I tried to read exif metadata from NEF files to no avail. If I create an instance of MagickImage and load it with a NEF file stream, it interprets it as TIFF with wrong width/height dimensions and GetExifProfile() returns null.

Should I do anything differently? I tried copying dcraw.exe and it did not have any effect.

Let me know if you need a NEF file?
Comments: I tried your image and I was able to read it with Magick.NET. I have dcraw.exe in my PATH and that made it work. But I didn't get an EXIF profile. It looks like dcraw does not provide use with that profile at the moment. We might be able to tweak it in the future to do so but I cannot make any promises.

Commented Unassigned: NEF (Nikon raw) files support [1397]

$
0
0
I tried to read exif metadata from NEF files to no avail. If I create an instance of MagickImage and load it with a NEF file stream, it interprets it as TIFF with wrong width/height dimensions and GetExifProfile() returns null.

Should I do anything differently? I tried copying dcraw.exe and it did not have any effect.

Let me know if you need a NEF file?
Comments: To make sure it works with a filestream you will need to 'force' the format with the MagickReadSettings argument. Set format to Nef to force it to read it as a NEF file. It looks like the NEF file has the same starting bytes as TIFF file and that is why it is recognized like that.

Closed Unassigned: NEF (Nikon raw) files support [1397]

$
0
0
I tried to read exif metadata from NEF files to no avail. If I create an instance of MagickImage and load it with a NEF file stream, it interprets it as TIFF with wrong width/height dimensions and GetExifProfile() returns null.

Should I do anything differently? I tried copying dcraw.exe and it did not have any effect.

Let me know if you need a NEF file?

Commented Unassigned: Trying to convert svg content into pdf [1391]

$
0
0
I am trying to convert SVG content into pdf, svg content has one png base 64 content which is not being visible after converting to pdf.

Please help me sort it out this issue. The svg content is attached. I am using Magick.NET-x64 7.0.0.0.

Comments: Upgrade librsvg did not resolve the issue. I will investigate this some more and get back to you when I know more.

Commented Unassigned: Trying to convert svg content into pdf [1391]

$
0
0
I am trying to convert SVG content into pdf, svg content has one png base 64 content which is not being visible after converting to pdf.

Please help me sort it out this issue. The svg content is attached. I am using Magick.NET-x64 7.0.0.0.

Comments: Thanks for the update Dlemstra.

Commented Unassigned: Trying to convert svg content into pdf [1391]

$
0
0
I am trying to convert SVG content into pdf, svg content has one png base 64 content which is not being visible after converting to pdf.

Please help me sort it out this issue. The svg content is attached. I am using Magick.NET-x64 7.0.0.0.

Comments: It turns out that your SVG file contains an incorrect value for the href of the green 'check sign'. `xlink:href="data: image/png` should be `xlink:href="data:image/png`. The extra space is not allowed by librsvg and it looks like that also is not allowed by the RFC: http://tools.ietf.org/html/rfc2397.

Closed Unassigned: Trying to convert svg content into pdf [1391]

$
0
0
I am trying to convert SVG content into pdf, svg content has one png base 64 content which is not being visible after converting to pdf.

Please help me sort it out this issue. The svg content is attached. I am using Magick.NET-x64 7.0.0.0.

Commented Unassigned: Trying to convert svg content into pdf [1391]

$
0
0
I am trying to convert SVG content into pdf, svg content has one png base 64 content which is not being visible after converting to pdf.

Please help me sort it out this issue. The svg content is attached. I am using Magick.NET-x64 7.0.0.0.

Comments: Thanks for the info, I'll try this and let you know. Really appreciate your help.

Commented Unassigned: Trying to convert svg content into pdf [1391]

$
0
0
I am trying to convert SVG content into pdf, svg content has one png base 64 content which is not being visible after converting to pdf.

Please help me sort it out this issue. The svg content is attached. I am using Magick.NET-x64 7.0.0.0.

Comments: I tested by removing extra space and it works fine. Thank you very much for the help.

Closed Unassigned: Animated gif generating [1378]

$
0
0
I can't really understand, why gif animation isn't working without this?
```
//Optionally reduce colors
QuantizeSettings settings = new QuantizeSettings { Colors = 256 };
collection.Quantize(settings);

// Optionally optimize the images (images should have the same size).
collection.Optimize();
```
2 png frames, same size. Without code above it creates gif with only 1 frame. With code above, everything is fine. Is it a bug of reature?
Comments: No response from user

Commented Unassigned: Error 'The type initializer for 'X86' threw an exception.' [1395]

$
0
0
We are trying to create a Windows Service which deals with Adobe image files and converts them to Thumbnails.

The service runs fine on our test machines which run Windows 7 but when we run the same service on our utils box which runs unders Windows Server 2012 it throws an error 'The type initializer for 'X86' threw an exception.'

We are using the multi CPU DLL in our project but we are unable to install Magick as we did in our test machines by running Configure.sln under Visual Studio 2013 and compiling to produce an install process.

Is there another way to install Magick on our server which doesn't have Visual Studio or are we missing some other process?
Comments: Can you respond to my question? Or did you already resolve this and can I close the issue?

Commented Unassigned: Issue when converting a PDF to PNG [1394]

$
0
0
I have noticed issues when converting large PDF (3.5MB and higher) that it freezes the system, and in the course of 5 minutes will create temp files over 10GB in size.

Let me know if you need any info
Comments: Can you respond to my question? Or did you already resolve this and can I close the issue?

Created Unassigned: ObjectDisposedException since 7.0.1 [1398]

$
0
0
I used to use Magick.NET 7.0.0.104 to convert PDF to PNG. This version didn't cause any errors.
Now I updated to 7.0.1.500 . Running the application on Win Server 2012 R2 works fine. But running it on Win Server 2003 ends up in an ObjectDisposedException. Testing some versions of Magick.NET shows that this issue appears since version 7.0.1 . While testing I saw Magick.NET wrote its temporary files into the application-directory, not to %TEMP% as it used to do. Setting MagickNET.SetTempDirectory doesn't change this.
I try to simplify my code and attach it to this issue.
Thanks in advance!
Wastl

```
MagickReadSettings settings = new MagickReadSettings();
settings.ColorSpace = ColorSpace.RGB;
settings.Density = new Density(200);

MagickGeometry geometry = new MagickGeometry();
geometry.Greater = true;
geometry.Width = 600;
geometry.Height = 600;

MagickImage image = new MagickImage(srcFile, settings); // source is PDF
image.Resize(geometry);
image.Format = MagickFormat.Png; // <== Exception
image.Strip();

imgData = image.ToBase64();
image.Dispose();
```
Exception says in german:
System.ObjectDisposedException
Message: Auf das verworfene Objekt kann nicht zugegriffen werden.
Objektname: "ImageMagick.MagickImage".
Viewing all 1011 articles
Browse latest View live


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