Gradients do not convert to BMP or JPG

Asked by Randall Edick

My objective is to create 32x32 24bit icons for a Ribbonbar in Visual Studio.

I start with a 32x32 icon and create a image with a gradient. If I save the file as a svg and later try to convert it with another tool (I've tried two) I see only the background,

 I've tried converting to JPG and BMP but both fail.

If I export the image as a png, and try to convert that I loose the gradient (I see the shapes of the image, but they just appears a solid color).

I presume this is some sort of vector to raster conversion problem. Is there a way to do this?

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
vwanweb
Solved:
Last query:
Last reply:
Revision history for this message
Best vwanweb (vwanweb) said :
#1

This may help:

1. When you save the .svg file try saving it as PLAIN.svg, inkscape default save is to the Inkscape .svg format.
or
2. Try using Paint.net (freeware) to convert the .png export from inkscape to .jpg or .bmp.

Note, Inkscape's default gradient edit applies alpha = 255 to the Start Stop and alpha = 0 to the End Stop. Make sure you are not using any Alpha settings below 255, since .jpg and png do not support alpha (transparency) channels.

-vw

Revision history for this message
Randall Edick (randalledick) said :
#2

Could not get 1) to work however 2) does provide a solution, I used Photoshop Elements to convert from .png to .jpg.

I don't understand how I could maintain a gradient if the alpha values is not lowered, isn't the gradient done with transparency?

Revision history for this message
vwanweb (vwanweb) said :
#3

Gradients cane be done in two ways:

1 - using Alpha Channel settings 225 thru 0 - png supported (jpg - no support for alpha channel)
2 - using color based Gradients (graduated) -bmp, jpg supported

full topic:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Attributes-Fill-Stroke.html#Attributes-Gradients