File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/py3exiv2bind/core/glue Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,15 @@ std::string exiv2_version() {
1919}
2020
2121
22- void set_dpi (const std::string &filename, int x , int y ){
23- std::unique_ptr<Exiv2::Image> image = ImageFactory::open (filename);
22+ void set_dpi (const std::string &filename, int x_res , int y_res ){
23+ const std::unique_ptr<Exiv2::Image> image = ImageFactory::open (filename);
2424
2525 image->readMetadata ();
2626
2727 Exiv2::ExifData metadata = image->exifData ();
2828
29- metadata[" Exif.Image.XResolution" ] = Exiv2::URational (x , 1 );
30- metadata[" Exif.Image.YResolution" ] = Exiv2::URational (y , 1 );
29+ metadata[" Exif.Image.XResolution" ] = Exiv2::URational (x_res , 1 );
30+ metadata[" Exif.Image.YResolution" ] = Exiv2::URational (y_res , 1 );
3131 metadata[" Exif.Image.ResolutionUnit" ] = 2 ;
3232 image->setExifData (metadata);
3333 image->writeMetadata ();
Original file line number Diff line number Diff line change @@ -19,6 +19,6 @@ struct metadata_chunk {
1919
2020std::string exiv2_version ();
2121
22- void set_dpi (const std::string &filename, int x , int y );
22+ void set_dpi (const std::string &filename, int x_res , int y_res );
2323
2424#endif // SUPERBUILD_GLUE_H
You can’t perform that action at this time.
0 commit comments