R.Wieser
2018-12-23 08:43:05 UTC
Hello all,
I'm loading a BMP image (using GdipLoadImageFromFile), and trying to add
some metadata (using GdipSetPropertyItem), before saving tit as a JPG. The
problem is that adding a property consistently fails.
After a bit of testing I found out that loading a JPG instead causes the
property adding to succceed (turns up in the GdipGetAllPropertyItems
result).
It is as if the adding of the property is first checked against the
*current* image type (bitmaps do not seem to support metadata), and doesn't
at all consider the possibility that the result wil be saved as a fully
other one. :-(
Does this really mean I first need to first save the BMP as a JPG and than
reload the JPG before I can add properties to it ? That sounds a bit
brain-dead to me.
Is there maybe some setting I need to apply ?
Regards,
Rudy Wieser
I'm loading a BMP image (using GdipLoadImageFromFile), and trying to add
some metadata (using GdipSetPropertyItem), before saving tit as a JPG. The
problem is that adding a property consistently fails.
After a bit of testing I found out that loading a JPG instead causes the
property adding to succceed (turns up in the GdipGetAllPropertyItems
result).
It is as if the adding of the property is first checked against the
*current* image type (bitmaps do not seem to support metadata), and doesn't
at all consider the possibility that the result wil be saved as a fully
other one. :-(
Does this really mean I first need to first save the BMP as a JPG and than
reload the JPG before I can add properties to it ? That sounds a bit
brain-dead to me.
Is there maybe some setting I need to apply ?
Regards,
Rudy Wieser