修改图片的描述属性怎么改?分享三个简单的方法

修改图片的描述属性怎么改?分享三个简单的方法

步骤3:图片拖入软件后,我们可以在右侧看到图片的各种元数据信息,如果的拍摄时间,经纬度,光圈等所有的数据信息。我们在下面找到“图像描述”,点击右侧的编辑框。

步骤4:在出现的弹框中输入我们想要的描述信息,然后的描述了。

当修改完成,我们可以打开图片的属性,可以看到描述信息被修改完成。

方法二:使用转换的图片编辑软件对图片的描述信息进行更改

步骤1:启动图片编辑软件,把你要处理的图片拖进操作界面,或者。接着,在菜单栏依次点击 “文件”→“文件简介”,这时就会弹出文件信息编辑窗口,这里就是我们设置各种详细信息的模块。

步骤2:在文件信息窗口里,先找到 “描述” 栏,输入我们想要的详细描述信息,。

步骤3:回到电脑中,查看图片的属性,在弹框中切换到“详细信息”标签页,我们可以看到被修改后的详细信息。

方法三:如果我们不想使用软件进行修改,还可以使用Python代码的方式修改图片的描述信息,这个方法适用于有一定编码基础的朋友。

步骤1:安装Python环境

pip install pyexiv2

pip install pyexiv2

步骤2:查看图片的exif数据

from pyexiv2 import Image

img = Image('./weihuang.jpg')

print(img.read_exif)

from pyexiv2 import Image

img = Image('./weihuang.jpg')

print(img.read_exif)

步骤3:通过上面代码可以打印和查看图片的所有元数据信息

{'Exif.Image.ImageWidth': '5472',

'Exif.Image.ImageLength': '3648',

'Exif.Image.BitsPerSample': '8 8 8',

'Exif.Image.PhotometricInterpretation': '2',

'Exif.Image.Make': 'Canon',

'Exif.Image.Model': 'Canon EOS 6D',

'Exif.Image.Orientation': '1',

'Exif.Image.SamplesPerPixel': '3',

'Exif.Image.ResolutionUnit': '2',

'Exif.Image.Software': 'Adobe Photoshop CC 2017 (Windows)',

'Exif.Image.DateTime': '2021:07:26 18:57:55',

'Exif.Image.YCbCrPositioning': '2',

'Exif.Image.ExifTag': '304',

'Exif.Photo.ExposureTime': '1/125',

'Exif.Photo.FNumber': '5/1',

'Exif.Photo.ExposureProgram': '1',

'Exif.Photo.ISOSpeedRatings': '250',

'Exif.Photo.SensitivityType': '2',

'Exif.Photo.RecommendedExposureIndex': '250',

'Exif.Photo.ExifVersion': '48 50 51 48',

'Exif.Photo.DateTimeOriginal': '2021:07:26 19:15:47',

'Exif.Photo.DateTimeDigitized': '2021:07:26 19:15:47',

'Exif.Photo.ComponentsConfiguration': '1 2 3 0',

'Exif.Photo.ExposureBiasValue': '0/1',

'Exif.Photo.MaxApertureValue': '175/100',

'Exif.Photo.MeteringMode': '3',

'Exif.Photo.Flash': '16',

'Exif.Photo.FocalLength': '50/1',

'Exif.Photo.UserComment': '',

'Exif.Photo.SubSecTime': '04',

'Exif.Photo.SubSecTimeOriginal': '04',

'Exif.Photo.SubSecTimeDigitized': '04',

'Exif.Photo.FlashpixVersion': '48 49 48 48',

'Exif.Photo.ColorSpace': '1',

'Exif.Photo.PixelXDimension': '1933',

'Exif.Photo.PixelYDimension': '2705',

'Exif.Photo.InteroperabilityTag': '1216',

'Exif.Iop.InteroperabilityIndex': 'R98',

'Exif.Iop.InteroperabilityVersion': '48 49 48 48',

{'Exif.Image.ImageWidth': '5472',

'Exif.Image.ImageLength': '3648',

'Exif.Image.BitsPerSample': '8 8 8',

'Exif.Image.PhotometricInterpretation': '2',

'Exif.Image.Make': 'Canon',

'Exif.Image.Model': 'Canon EOS 6D',

'Exif.Image.Orientation': '1',

'Exif.Image.SamplesPerPixel': '3',

'Exif.Image.ResolutionUnit': '2',

'Exif.Image.Software': 'Adobe Photoshop CC 2017 (Windows)',

'Exif.Image.DateTime': '2021:07:26 18:57:55',

'Exif.Image.YCbCrPositioning': '2',

'Exif.Image.ExifTag': '304',

'Exif.Photo.ExposureTime': '1/125',

'Exif.Photo.FNumber': '5/1',

'Exif.Photo.ExposureProgram': '1',

'Exif.Photo.ISOSpeedRatings': '250',

'Exif.Photo.SensitivityType': '2',

'Exif.Photo.RecommendedExposureIndex': '250',

'Exif.Photo.ExifVersion': '48 50 51 48',

'Exif.Photo.DateTimeOriginal': '2021:07:26 19:15:47',

'Exif.Photo.DateTimeDigitized': '2021:07:26 19:15:47',

'Exif.Photo.ComponentsConfiguration': '1 2 3 0',

'Exif.Photo.ExposureBiasValue': '0/1',

'Exif.Photo.MaxApertureValue': '175/100',

'Exif.Photo.MeteringMode': '3',

'Exif.Photo.Flash': '16',

'Exif.Photo.FocalLength': '50/1',

'Exif.Photo.UserComment': '',

'Exif.Photo.SubSecTime': '04',

'Exif.Photo.SubSecTimeOriginal': '04',

'Exif.Photo.SubSecTimeDigitized': '04',

'Exif.Photo.FlashpixVersion': '48 49 48 48',

'Exif.Photo.ColorSpace': '1',

'Exif.Photo.PixelXDimension': '1933',

'Exif.Photo.PixelYDimension': '2705',

'Exif.Photo.InteroperabilityTag': '1216',

'Exif.Iop.InteroperabilityIndex': 'R98',

'Exif.Iop.InteroperabilityVersion': '48 49 48 48',

步骤4:我们找到描述信息属性名一项进行修改,修改代码如下:

{'Exif.Image.ExifTag': '2021:07:26 18:57:55' }

{'Exif.Image.ExifTag': '2021:07:26 18:57:55' }返回搜狐,查看更多

相关推荐