GoogleCloudPlatform / GoogleCloudPlatform/gsutil

Downloading object to local machine doesn't preserve custom metadata

Open
#1,186 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
918
Forks
335
PR merge metrics
No merged PRs in 30d

Description

Downloading a PNG image like below doesn't preserve custom metadata.:

gsutil cp gs://bucket/image.png image.png

I'm using Python and the Pillow library (from PIL.PngImagePlugin import PngInfo) to read the downloaded image and read the metadata which is empty.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the shown gsutil cp command and inspect the downloaded PNG with Pillow's PngImagePlugin. Trace the gsutil download path responsible for object-to-file handling; done means custom metadata present in the source object remains readable from the local PNG.

Written by the indexing model from the issue text.

Assessment

Tech stack
google-cloud, python
Domain
cli, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.