Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Image Upload: Remove original

default discord avatar
julian.urabl2 years ago
3

Hey gang, I'd like to remove the original file and only store processed images to save storage space. Is that possible?

  • default discord avatar
    lauge.comlast year

    Same here

  • default discord avatar
    big.ban.last year

    any updates so far?



    Found a way: applied resizeOptions?: ResizeOptions; to the collection

  • default discord avatar
    nils0648812 months ago

    With resizeOptions you can resize the original.


    From what I understood, this should be your biggest image.



    I use, for a maximum width



     resizeOptions: {
          width: 3840,
          withoutEnlargement: true,
          fit: 'cover',
          position: 'centre',
        },
Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.