Giter Site home page Giter Site logo

Comments (5)

coobird avatar coobird commented on June 10, 2024 3

@zhaohui90-lee, Thumbnailator relies on Image I/O plugins available at runtime for reading and writing images. The default Java environment doesn't have support for WebP, so Thumbnailator cannot handle them.

If you want to handle other image formats, you'll need to add the appropriate Image I/O plugins to support them. For example, if you need WebP support, TwelveMonkeys ImageIO has read support for them. You'll basically just need to add a Maven dependency to the WebP plugin ("imageio-webp") and that should be all you'll need to do.

For more information, please refer to the FAQ on this topic.

from thumbnailator.

zhaohui90-lee avatar zhaohui90-lee commented on June 10, 2024

the image format webp is not supported!

from thumbnailator.

zhangjianxing2011 avatar zhangjianxing2011 commented on June 10, 2024

i use Thumbnails.of(url) it works well with webp image, my version of Thumbnails 0.4.20, but the question of mine is i want use the origin image size, am i don`t not about but i need set the size first,can i have any method to get the size?

from thumbnailator.

coobird avatar coobird commented on June 10, 2024

@zhangjianxing2011 - Do you want to keep the same size as the original? Then you can use .scale(1.0):

Thumbnails.of("/path/to/image").scale(1.0).toFile("/path/to/thumbnail");

Next time when you have a question, feel free to open a new issue rather than ask in an already closed issue. Thanks!

from thumbnailator.

zhangjianxing2011 avatar zhangjianxing2011 commented on June 10, 2024

@zhangjianxing2011 - Do you want to keep the same size as the original? Then you can use .scale(1.0):

Thumbnails.of("/path/to/image").scale(1.0).toFile("/path/to/thumbnail");

Next time when you have a question, feel free to open a new issue rather than ask in an already closed issue. Thanks!
Thank you very much,I will submit an closed issue with the answer

from thumbnailator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.