# Google Photos Picker downloads resized image

**URL:** <https://community.transloadit.com/t/google-photos-picker-downloads-resized-image/17538>\
**Category:** Uppy\
**Created:** [April 6, 2025, 1:57pm UTC](https://community.transloadit.com/t/google-photos-picker-downloads-resized-image/17538 "2025-04-06T13:57:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![infomas](https://avatars.discourse-cdn.com/v4/letter/i/8e8cbc/32.png) [@infomas](https://community.transloadit.com/u/infomas)\
**Post date:** [April 6, 2025, 1:57pm UTC](https://community.transloadit.com/t/google-photos-picker-downloads-resized-image/17538/1 "2025-04-06T13:57:36Z")

</div>

Hello,

I’m using uppy and companion with Google Photos Picker API, which allows me to select & upload photos to my server. However, these photos come with resized resolution. It looks like it downloads preview image instead of full-sized original file. I couldn’t find anything in documentation if I could specify to retrieve original files.

Does anyone know how this could be fixed?

I use standalone companion server (version 5.5.2). Let me know if you need more details of my setup.

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![mifi](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/mifi/32/603_2.png) [@mifi](https://community.transloadit.com/u/mifi)\
**Post date:** [April 7, 2025, 12:28pm UTC](https://community.transloadit.com/t/google-photos-picker-downloads-resized-image/17538/2 "2025-04-07T12:28:26Z")

</div>

Hi. I cannot reproduce this. When I try to upload an image it is in the full resolution at its destination. Could you point me to a way to reproduce this problem for example on [Uppy](https://uppy.io/examples/) or some other way?

---

<div class="post-metadata">

**Author:** ![infomas](https://avatars.discourse-cdn.com/v4/letter/i/8e8cbc/32.png) [@infomas](https://community.transloadit.com/u/infomas)\
**Post date:** [April 9, 2025, 7:45pm UTC](https://community.transloadit.com/t/google-photos-picker-downloads-resized-image/17538/3 "2025-04-09T19:45:17Z")

</div>

@mifi Thanks for looking into it. I’m currently working on my local machine, so I’m not sure how could I give my setup for reproducing. But I could give you some details of my setup:

- I use CDN [https://releases.transloadit.com/uppy/v4.13.4/uppy.min.mjs](https://releases.transloadit.com/uppy/v4.13.4/uppy.min.mjs)
- Companion server is running on docker container with the latest image of [https://hub.docker.com/r/transloadit/companion](https://hub.docker.com/r/transloadit/companion)
- Configuration is pretty standard on both sides (companion and uppy client)
- I use XHRUpload as my destination

Here is how my javascript look like:

```auto
    <script type="module">
        import {
            Uppy,
            Dashboard,
            Webcam,
            XHRUpload,
            GooglePhotosPicker,
            Form
        } from 'https://releases.transloadit.com/uppy/v4.13.4/uppy.min.mjs'

        const uppy = new Uppy({ debug: true, autoProceed: false })
            .use(Dashboard, {
                target: '#photo-uploader',
                inline: true,
                showProgressDetails: false,
                width: '100%'
            })
            .use(GooglePhotosPicker, {
                companionUrl: 'http://localhost:3020',
                clientId: 'my_client_id',
                companionCookiesRule: 'include',
                withCredentials: true,
            })
            .use(Webcam, { target: Dashboard })
            .use(XHRUpload, {
                endpoint: 'my_target_url',
                fieldName: 'file[0]',
                withCredentials: true,
            })
            .use(Form, {
                target: '#fsupload',
            });

        uppy.on('success', (fileCount) => {
            console.log(`${fileCount} files uploaded`)
        })

        uppy.on('complete', (fileCount) => {
            console.log('Completed !', fileCount);
            updateCartBar();
        });
    </script>

```

I’m not sure, maybe there is some undocumented things I should be aware of? Because right now it looks like it downloads a preview image from Google Photos, not the original one. For example, the photo I download directly from Google Photos is 3000x4000 resolution, but the one I receive to my destination endpoint is 300x400.

---

<div class="post-metadata">

**Author:** ![mifi](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/mifi/32/603_2.png) [@mifi](https://community.transloadit.com/u/mifi)\
**Post date:** [April 10, 2025, 10:44am UTC](https://community.transloadit.com/t/google-photos-picker-downloads-resized-image/17538/4 "2025-04-10T10:44:09Z")

</div>

Ohh sorry I totally misread. For some reason I thought this was about Google Drive Picker and that’s what I tested. I’ve now tested Google Photos Picker and I can reproduce the problem. When I implemented the plugin initially I assumed that not appending any `w` or `h` parameter to the [URL would give the original resolution](https://developers.google.com/photos/library/guides/access-media-items#base-urls), but that’s clearly not the case. I have made a fix and we hope to get a release soon. [Fix google photos picker by mifi · Pull Request #5717 · transloadit/uppy · GitHub](https://github.com/transloadit/uppy/pull/5717)

---

<div class="post-metadata">

**Author:** ![infomas](https://avatars.discourse-cdn.com/v4/letter/i/8e8cbc/32.png) [@infomas](https://community.transloadit.com/u/infomas)\
**Post date:** [April 10, 2025, 12:02pm UTC](https://community.transloadit.com/t/google-photos-picker-downloads-resized-image/17538/5 "2025-04-10T12:02:10Z")

</div>

Wow, that was quick! Thank you so much, I really appreciate it @mifi! ❤

---

<div class="post-metadata">

**Author:** ![infomas](https://avatars.discourse-cdn.com/v4/letter/i/8e8cbc/32.png) [@infomas](https://community.transloadit.com/u/infomas)\
**Post date:** [April 12, 2025, 10:15am UTC](https://community.transloadit.com/t/google-photos-picker-downloads-resized-image/17538/6 "2025-04-12T10:15:20Z")

</div>

Also, for those who can’t wait for the release, here is a quick workaround (append ‘=d’ once file is added):

```auto
        uppy.on('file-added', (file) => {
            if (file.source === 'GooglePhotosPicker') {
                file.remote.body.url = file.remote.body.url + '=d';
            }
        });

```
