# Error creating thumbnail from page 1 of PDF

**URL:** <https://community.transloadit.com/t/error-creating-thumbnail-from-page-1-of-pdf/16169>\
**Category:** Transloadit\
**Created:** [July 20, 2022, 9:22pm UTC](https://community.transloadit.com/t/error-creating-thumbnail-from-page-1-of-pdf/16169 "2022-07-20T21:22:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![laurad](https://avatars.discourse-cdn.com/v4/letter/l/48db29/32.png) [@laurad](https://community.transloadit.com/u/laurad)\
**Post date:** [July 20, 2022, 9:22pm UTC](https://community.transloadit.com/t/error-creating-thumbnail-from-page-1-of-pdf/16169/1 "2022-07-20T21:22:28Z")

</div>

Hi,

I’m attempting to generate a thumbnail from the first page of a PDF. I use the parameter `page: 1` in my assembly but the a thumbnail is generated from the last page of the PDF and all the colors are incorrect. If I remove the `page` parameter and allow thumbnails to be generated from all pages of the PDF, the generated PNG file labelled `page_001.png` is the first page of the PDF document and the thumbnail looks as expected.

This is the relevant part of my assembly:

```auto
pdf_thumb: {
            use: [":original"],
            robot: "/document/thumbs",
            result: true,
            page: 1,
            width: 200,
            height: 500,
            resize_strategy: "fit",
            imagemagick_stack: "v2.0.7"
        },

```

I have attached the generated thumbnails for reference (first image is generated from all pages and is the expected result; second image is the generated from the first page of the pdf).

Thanks for your help!  
 ![page_001](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/1X/580d91428778096fa4989d56f45b267c4110ac24.png)

![typescript-in-50-lessons](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/1X/92e008505e90e1bce66830d05a16cf89c21b8a21.png)

---

<div class="post-metadata">

**Author:** ![Florian](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/florian/32/551_2.png) [@Florian](https://community.transloadit.com/u/Florian)\
**Post date:** [July 26, 2022, 11:05pm UTC](https://community.transloadit.com/t/error-creating-thumbnail-from-page-1-of-pdf/16169/2 "2022-07-26T23:05:09Z")

</div>

Hi laurad,

this is Florian from Transloadit.  
I would be happy to assist on this topic!

Can you please open a ticket on our support system and send me an Assembly ID of one erroneous assembly? This would help us with keeping track of all the relevant errors 🙂

You can find our Intercom integration in the lower right corner of the hompage [https://transloadit.com](https://transloadit.com).

Awaiting your response!

 ![Bildschirmfoto 2022-07-27 um 01.03.43](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/1X/a62d2ed77a5937187d654dea6e9efdf71b550a09.jpeg)

---

<div class="post-metadata">

**Author:** ![laurad](https://avatars.discourse-cdn.com/v4/letter/l/48db29/32.png) [@laurad](https://community.transloadit.com/u/laurad)\
**Post date:** [July 26, 2022, 11:18pm UTC](https://community.transloadit.com/t/error-creating-thumbnail-from-page-1-of-pdf/16169/3 "2022-07-26T23:18:33Z")

</div>

Hi Florian,

Thank you for your response but I’ve actually found the cause of the issue. I’m also using the `"/image/resize"` robot and it was the output from that robot that was generating the thumbnail from the last page of the thumbnail.

Cheers  
Laura

---

<div class="post-metadata">

**Author:** ![Florian](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/florian/32/551_2.png) [@Florian](https://community.transloadit.com/u/Florian)\
**Post date:** [July 27, 2022, 12:33pm UTC](https://community.transloadit.com/t/error-creating-thumbnail-from-page-1-of-pdf/16169/4 "2022-07-27T12:33:01Z")

</div>

Hi Laura,

that’s great! I will close this topic now.

🤗

---

<div class="post-metadata">

**Author:** ![Florian](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/florian/32/551_2.png) [@Florian](https://community.transloadit.com/u/Florian)\
**Post date:** [July 27, 2022, 12:33pm UTC](https://community.transloadit.com/t/error-creating-thumbnail-from-page-1-of-pdf/16169/5 "2022-07-27T12:33:06Z")

</div>


