Vampyre Imaging Library Forum

Imaging Category => Bugs And Other Insects => Topic started by: DS.Lin on 25 December 2011, 09:58:08

Title: BUG in calc TranslateUnits for some images
Post by: DS.Lin on 25 December 2011, 09:58:08
procedure TMetadata.TranslateUnits(ResolutionUnit: TResolutionUnit; var XRes,  YRes: Single);
....
    XRes := UnitSize / XRes;
    YRes := UnitSize / YRes;

some images, the XRes or YRes is zero, then "divided by zero" exception will raised
Title: Re: BUG in calc TranslateUnits for some images
Post by: DS.Lin on 25 December 2011, 10:03:54
The attachment is a sample JPG file
Title: Re: BUG in calc TranslateUnits for some images
Post by: Galfar on 31 December 2011, 01:58:07
Thanks for the report, fixed.