Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drawing svg to bitmap shows up empty on Win Forms Devexpress.PictureEdit in SVG 3 #578

Closed
fkorak opened this issue Sep 12, 2019 · 3 comments · Fixed by #582
Closed

Drawing svg to bitmap shows up empty on Win Forms Devexpress.PictureEdit in SVG 3 #578

fkorak opened this issue Sep 12, 2019 · 3 comments · Fixed by #582

Comments

@fkorak
Copy link

fkorak commented Sep 12, 2019

Hello,

I'm currently loading in several SVG-Files, which I am adding to Devexpress.PictureEdits (just a display for a picture in WinForms).

SvgDocument SvgLogo1 = SvgDocument.Open($@{AppDomain.CurrentDomain.BaseDirectory}\Test1.svg");       
SvgDocument SvgLogo2 = SvgDocument.Open($@{AppDomain.CurrentDomain.BaseDirectory}\Test2.svg");

pictureEditLogo1.Image = SvgLogo1.Draw();
pictureEditLogo2.Image = SvgLogo2.Draw();

This works up to Nuget 2.4.3. Using 3.0.49 nothing gets drawn. There are no compiler warnings and debugging doesn't show me anything helpful.

I'm using .Net 4.6.2 set to Any CPU, Devexpress 19.1 .

Thank you for your help!

@mrbean-bremen
Copy link
Member

Can you please upload an example image that does not work?

@fkorak
Copy link
Author

fkorak commented Sep 20, 2019

Sure:

SVG_logo.zip

As far as I can tell our marketing created this file using Illustrator. If necessary I could share details about used versions and stuff.

@mrbean-bremen
Copy link
Member

Ok, this is a regression, but not really a bug, due to the incorrect mime extension used in the image (img/png instead of image/png). As this seems to be written sometimes, we shall fix this anyway.

mrbean-bremen added a commit to mrbean-bremen/SVG that referenced this issue Sep 20, 2019
- sometimes the mime type in embedded images uses "img"
  instead of the correct "image"
- fixes svg-net#578
mrbean-bremen added a commit that referenced this issue Sep 21, 2019
- sometimes the mime type in embedded images uses "img"
  instead of the correct "image"
- fixes #578
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants