Hello all,
we have been using Aspose.Imaging in development to convert WMF/WMF files to PNG or SVG. We have encountered following problems:
1)When converting to SVG some WMF files are not being transformed to vector images (with vectors in SVG code) but instead the conversion generates a SVG file which is simply a wrapper of an image/png;base64. (See image2.wmf). This does not apply to all wmf, which is odd. See for example image27-aspose.svg
2)When converting to SVG Aspose is adding white margins to the SVG picture. Compare provided image2-aspose.svg and image2-wmf2svg.svg
3) Converting to PNG results to poor quality. See image image161-aspose.png
For issue IMAGINGJAVA-1198, we have internally investigated the issue. Actually, the vector images are converted to SVG as SVG containing PNG, in the absence of a license. In other words, when a watermark is applied to an image.
In this case, the convertible WMF format contains only a raster image. This statement can be checked in 2 ways:
Open WMF image in the Ms Word and and increase the size several times the image will be low quality in contrast to the image27.wmf
Run the following code below, and analyze records.
For issue IMAGINGJAVA-1201, Image of WMF format converting to raster image in accordance with the resolution specified in the header of the format . The same result can be obtained in the MS Paint, paint.png.
However, it is possible to rasterize the image with a different resolution, for example, scale image x8 timesimage161.wmf.png
Hello @mudassir.fayyaz,
as i wrote in the first topic we do have a license and the conversions are done with the code I provided, which is using the license. Therefore lets exclude the unlicensed scenario.
As for your second point, we do see differences in the records for image2 and image27, but we are convinced that the information for ‘vectorizing’ the output exists within the image2.wmf file.
If you insert image2.wmf and image 27.wmf within a word, and then use a virtual Printer (PDFCreator) to generate the PDF, you will see that the result in the PDF is an vector image for both images.
Is there a way we can achieve such quality as in the PDF ?
I will attach a screenshot of the docx view, since uploading docx is not allowed and pdf file.
I have observed the comments shared by you and have added the information in our issue tracking system. We will further assess the information shared and will get back to you with feedback as soon as possible.