Giter VIP home page Giter VIP logo

Comments (3)

Yanqilong avatar Yanqilong commented on June 18, 2024 2

我碰到的问题是,压缩图片来源非来自手机,也就是说不是手机拍照和手机截屏来的图片,压缩过后比原图大多了,原图16KB,压缩过后变成90KB,大大怎么解决?

from advancedluban.

douya40 avatar douya40 commented on June 18, 2024

.setMaxSize(300) // 限制最终图片大小(单位:Kb)
.setMaxHeight(1920) // 限制图片高度
.setMaxWidth(1080)
我这样设置的,九张图,是4.88M,不知道你745Kb怎么设置的,求教

from advancedluban.

tqdream avatar tqdream commented on June 18, 2024

这个貌似不好解决吧。比如你截屏了一个图片,然后用系统的裁剪。可能也会出现裁剪之后的图片比原始的截屏文件还要大

from advancedluban.

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.