Hello and thanks, not completely, be kind and check the Authors and Copyright fields:
Untitled.jpg (157.1 KB)
@australian.dev.nerds
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): IMAGINGNET-7281
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
Hello
Is IMAGINGNET-7281 for both meta data transfer and image rotation when saved?
Thanks.
@australian.dev.nerds , excuse me for misunderstanding! One of missing ExifData items contains Orientation value, which is not transferred to output TIFF. So, yes it the output TIFF will be shown according to specified ExifData.Orientation value.
Hello,
Are these 2 issues fixed in 24.8?
Thanks
Hello
Are those 2 issues in the above case get fixed in the 24.11 as said?
@australian.dev.nerds ,
Unfortunately, the opened ticket will be up for the first 25.02 release due to ongoing queue.
The issues you have found earlier (filed as IMAGINGNET-7281) have been fixed in this update. This message was posted using Bugs notification tool by samer.el-khatib
Hello,
I just tested with 25.3 and no matter if I keep or dispose metadata when loading the above sample jpg and saving as tiff, the orientation is still changed incorrectly.
Note than choosing to keep or dispose all metadata should not remove the orientation tag.
Am I missing something?
Thanks.
@australian.dev.nerds ,
Jpeg image format can store an orientation value inside Exif metadata, so here is a code example to keep Exif data on export:
var inputPath = @"C:\Users\Denis\Downloads\input.JPG";
var outputPath = inputPath + ".tiff";
int imageOrientation = 0;
using (var image = Image.Load(inputPath))
{
if (image is IHasExifData hasExif)
{
imageOrientation = (int)(hasExif.ExifData?.Orientation ?? 0);
}
image.Save(outputPath, new TiffOptions(TiffExpectedFormat.TiffJpegRgb)
{
KeepMetadata = true,
});
}
int outputOrientation = 0;
using (var image = Image.Load(outputPath) as TiffImage)
{
outputOrientation = (int)image.ActiveFrame.FrameOptions.Orientation;
}
Debug.Assert(imageOrientation == outputOrientation);
Hope this hepls!
Thanks but no, didn’t help
The logic is incorrect, let me upload a sample project.
Dim MyImage As Aspose.Imaging.FileFormats.Jpeg.JpegImage = TryCast(Aspose.Imaging.Image.Load(MyFileStream, LoadOptions), Aspose.Imaging.FileFormats.Jpeg.JpegImage)
MyImage.Save(“D:\Bug2.TIFF”, TiffOptions)
This should simply work! But is not working as expected!
@australian.dev.nerds , please specify ImageOptionsBase.KeepMetadata or ExifData property explicitly. By default the image metadata is not exported. We will consider your request on exporting Exif orientation only in case.
Hello,
Not possible, not wise, not working!
Not working because even using ASPSaveSetTIF.KeepMetadata = True will not fix the problem
Not possible because one of the crucial features of conversion process is to fully remove all exif/metadata properties for privacy, this should not include the ones which have no private info / privacy concerns, and to exclude the ones like orientation which are part of the image properties indeed.
Not wise because if we need to remove all metadata/exif properties on save, there’s no way to have a correct output!
Thanks.
Hello @australian.dev.nerds,
Please keep in mind that Exif data is currently supported by Tiff and Jpeg, so those are the only one formats that support Exif orientation value.
There is a code example above on how to check is Image is IHasExifMetadata container and export image metadata.
We have opened the following new ticket(s) in our internal issue tracking system on extending Exif metadata support for raster images. We will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): IMAGINGNET-7620
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
Hello and thanks for the info,
If my memory serves me, Tiff could save the rotation info both in its internal format and also in the Exif data, I said if that’s true, it’s better to save that data in the Tiff image instead of its Exit, since Exit can be removed and make the resulting image invalid rotated.