Author Topic: Classic Screen editor: What is the best way to convert svg-files in bmp ?  (Read 11428 times)

Offline Marbek_Elektronik

  • PLUS+1 Guru
  • *****
  • Posts: 350
  • Karma: +8/-0
    • Marbek Elektronik
Hi,
danfoss has a list of symbols in vector surce fils "SAE J1362 Image Library v101_Latest_1_03107668", format "*.svg".
classic screen editor needs bmp-files, most 1bit colour.
For example I need 39x39 Pixel or 79x79 pixel, etc.
svg-file is vector based and so there is a high resolution.
If I export the svg-file via program libre-office-draw (or other) there will be a bmp which is 801x823 pixel.
I open this in windows paint and set the size to 5%, because it should be smaller.
But the result is not good enough.

Does anyone knows a way to get a good result?
Marbek Elektronik, Dipl.-Ing. Bernd Konrad
Dienstleistung, Entwicklung, Herstellung

Offline Sergio-DEK

  • PLUS+1 Developer
  • ***
  • Posts: 11
  • Karma: +2/-0
  • Each is a programmer of its own luck.
    • www.dek.si
Re: Classic Screen editor: What is the best way to convert svg-files in bmp ?
« Reply #1 on: September 08, 2015, 01:59:50 PM »
The drawings from the SAE image library were made with Inkscape, a free professional quality vector graphics software which runs on Windows, Mac OS X and Linux.

In Inkscape the original vector graphic can be directly exported to .png (File -> Export PNG image), which includes properties like "Image size", to define the size of the exported picture. The exported .png will still contain a clear graphic and the transparency layer. Afterwards it can be easily transformed to almost any graphic format using MS Paint or similar programs.

I hope this helps.

Regards,
« Last Edit: September 08, 2015, 02:03:25 PM by Sergio-DEK »
Sergio Kosic
DEK electronics

Offline Marbek_Elektronik

  • PLUS+1 Guru
  • *****
  • Posts: 350
  • Karma: +8/-0
    • Marbek Elektronik
Re: Classic Screen editor: What is the best way to convert svg-files in bmp ?
« Reply #2 on: September 09, 2015, 12:55:13 PM »
Hi,
Ok, thanks!

I will post my way too:
Open svg-file with libre-office-draw (or another vector program) and convert the svg-file to bmp.
Then open bmp-file with windows paint change to 1bit black/white and resize the sheet for example to 800x800 pixels.
Then change size to 40x40 pixels.
Sometimes I have to optimize the symbol.
Marbek Elektronik, Dipl.-Ing. Bernd Konrad
Dienstleistung, Entwicklung, Herstellung

Offline FStelzer

  • PLUS+1 Expert
  • ****
  • Posts: 50
  • Karma: +8/-0
Re: Classic Screen editor: What is the best way to convert svg-files in bmp ?
« Reply #3 on: September 14, 2015, 01:25:09 PM »
Hello,

I use the Adobe Illustrator for the graphics.
It's not the cheapest Software, but the functionality is great !


KR,
FStelzer

Offline jashom1

  • PLUS+1 Expert
  • ****
  • Posts: 78
  • Karma: +6/-0
Re: Classic Screen editor: What is the best way to convert svg-files in bmp ?
« Reply #4 on: September 15, 2015, 07:18:28 AM »
The standard (and very basic) Microsoft Paint does do the job (barely), however there are some much better programs out there that are free!

Paint.net is a fantastic tool where you can do a fair bit of what the big paint programs do:

http://www.getpaint.net/index.html

Cheers,

John.


Offline Marbek_Elektronik

  • PLUS+1 Guru
  • *****
  • Posts: 350
  • Karma: +8/-0
    • Marbek Elektronik
Re: Classic Screen editor: What is the best way to convert svg-files in bmp ?
« Reply #5 on: September 15, 2015, 06:21:30 PM »
Thanks.

I asked for a way to convert vector graphic (svg-files) in BMPs without any need to optimize manually.

My way: I have post it above.

Has anybody a better idea?
Marbek Elektronik, Dipl.-Ing. Bernd Konrad
Dienstleistung, Entwicklung, Herstellung

Offline Jpshockster

  • PLUS+1 Developer
  • ***
  • Posts: 21
  • Karma: +4/-0
    • Landoll
Re: Classic Screen editor: What is the best way to convert svg-files in bmp ?
« Reply #6 on: September 25, 2015, 03:17:25 PM »
Hello all
I have found that inkscape is a great tool for modifying/manipulating any of the .svg SAEj1939 images. you can resize by pixel to exactly what you are looking for and add color for the DP250 or grey scale it for the DP200, once your image is modified I save it as a .png  Then I open the .png file with Gimp2 and check for any distorted pixelation  and correct it per pixel (kind of a pain but the results are the best I have found)  once you are happy with your image export the image as .bmp   Both inkscape and Gimp2 are free image editors and respectfully have there place.  I have imported the svg into Gimp but the results were less than desirable.  Hope this helps.  I have attached a .png  to show the power of the two combined, I created the gages with inkscape and cleaned up the pixelation with Gimp2.   it looks super clean on the DP250

Offline Marbek_Elektronik

  • PLUS+1 Guru
  • *****
  • Posts: 350
  • Karma: +8/-0
    • Marbek Elektronik
What SVG Viewer for Windows Explorer do you use?
I take this:
https://svgextension.codeplex.com/downloads/get/803086
"SVG Explorer Extension"

And for working with svg-files "Inkscape"
Marbek Elektronik, Dipl.-Ing. Bernd Konrad
Dienstleistung, Entwicklung, Herstellung

Offline Jpshockster

  • PLUS+1 Developer
  • ***
  • Posts: 21
  • Karma: +4/-0
    • Landoll
What SVG Viewer for Windows Explorer do you use?
I take this:
https://svgextension.codeplex.com/downloads/get/803086
"SVG Explorer Extension"

And for working with svg-files "Inkscape"

All I use it the following for viewing and modifying.  I just associated the svg file type with inkcape.

https://inkscape.org/en/download/windows/

Offline Marbek_Elektronik

  • PLUS+1 Guru
  • *****
  • Posts: 350
  • Karma: +8/-0
    • Marbek Elektronik
I also had installed inkscape.
But doesn't seen a preview in windows editor, though I had accociated *.svg with inkscape.
Marbek Elektronik, Dipl.-Ing. Bernd Konrad
Dienstleistung, Entwicklung, Herstellung