Wmf to png conversion absolute line and divid line very faint

Using aspose.imageing java product: converting wmf to png file.
After converting wmf to png , the absolute line e.g. |u| , “|” getting very faint in png file.
wmf file and converted png file enclosed in zip format.
import_image1_18720283695400.zip (10.8 KB)

code :

try (Image image = Image.load(mfFile.getAbsolutePath()))
			        {
			            WmfRasterizationOptions rasterizationOptions = new WmfRasterizationOptions();
			            
			            
			            
			            System.out.println(" Before converting  width :"+image.getWidth()+" height : "+image.getHeight()+" size "+image.getSize());
			            
			           if(image.getWidth() > 200 || image.getHeight() > 200) {
			        	   rasterizationOptions.setPageWidth((int)(image.getWidth()));
						    rasterizationOptions.setPageHeight((int)(image.getHeight()));
			           }else {
			        	   rasterizationOptions.setPageWidth((int)(image.getWidth()*3*6));
						    rasterizationOptions.setPageHeight((int)(image.getHeight()*3*6));
			           }

					    System.out.println(" After converting  width :"+rasterizationOptions.getPageWidth()+" height : "+rasterizationOptions.getPageHeight());
					    
			            PngOptions pngOptions = new PngOptions();
			            ResolutionSetting resolutionSetting = new ResolutionSetting(300.0, 300.0);
			           pngOptions.setResolutionSettings(resolutionSetting);
			            pngOptions.setVectorRasterizationOptions(rasterizationOptions);
			            
			            image.save(pngFile.getAbsolutePath(), pngOptions);
			        }

Hello, @supportmeritstudents.
We appreciate your interest in Aspose.Imaging.
Thank you for the provided details. We will check it and let you know the results.
Regards

any update on this.

Hello @supportmeritstudents
I am sorry for the delay.
To our sorry, we could not reproduce this issue.
Please let us know more about your environment, e.g. Operation System, Java version, and version of Aspose.Imaging you use.
Additionally, you may perform some experiments by setting the following options (since they depend on OS/Java/installed fonts and so on)

// Please test the different options here 
rasterizationOptions.setTextRenderingHint(TextRenderingHint.ClearTypeGridFit);
// and here 
rasterizationOptions.setSmoothingMode(SmoothingMode.HighSpeed);

We are using aspose-imaging-17.9-jdk16.jar, java-8 and Linux os.

Also we checked your provide setting, but rasterizationOptions not showing setTextRenderingHint and setSmoothingMode method.

Please guide us how it will resolved at our currently used version.

@supportmeritstudents
We will review your request. You will be answered shortly!

Hi, @supportmeritstudents
Yes, I confirm this issue in aspose-imaging-17.9-jdk16.jar, it was fixed in aspose-imaging-19.4-jdk16.jar.

Hello,

I cross verify that faint issue with version aspose-imaging-25.5 and its working now. but there is another issue found , after converting wmf to png there “)du” in wmf after conversion its “du” overlapping on “)” character.
Problem png as well as wmf file enclosed in zip. please check it and let us know resolution on it.
wmf_to_png.zip (19.2 KB)

Code:
try (Image image = Image.load(mfFile.getAbsolutePath())){
WmfRasterizationOptions rasterizationOptions = new WmfRasterizationOptions();

					System.out.println(
							" Before converting  width :" + image.getWidth() + " height : " + image.getHeight());

					if (imageWidth > 0) {
						rasterizationOptions.setPageWidth((int) ((imageWidth * 1.33 * 3))); // converting points to
					} else {
						rasterizationOptions.setPageWidth((int) (image.getWidth() * 1.33 * 4));
					}
					if (imageHeight > 0) {
						rasterizationOptions.setPageHeight((int) (imageHeight * 1.33 * 3)); // converting points to
																							// pixel
					} else {
						rasterizationOptions.setPageHeight((int) (image.getHeight() * 1.33 * 4));
					}
					// Please test the different options here 
					rasterizationOptions.setTextRenderingHint(TextRenderingHint.ClearTypeGridFit);
					// and here 
					rasterizationOptions.setSmoothingMode(SmoothingMode.HighSpeed);
					System.out.println(" After converting  width :" + rasterizationOptions.getPageWidth()
							+ " height : " + rasterizationOptions.getPageHeight());

					PngOptions pngOptions = new PngOptions();
					ResolutionSetting resolutionSetting = new ResolutionSetting(300.0, 300.0);
					pngOptions.setResolutionSettings(resolutionSetting);
					pngOptions.setVectorRasterizationOptions(rasterizationOptions);

					image.save(pngFile.getAbsolutePath(), pngOptions);
				}

@supportmeritstudents
Thank you for your feedback!
I will check it, but it seems that the wrong font is being used. Perhaps there is no necessary font on your computer, and a default font is used, which is why such an issue could appear.