Git Product home page Git Product logo

Comments (3)

sthpratik avatar sthpratik commented on September 27, 2024

Even if I reduce the size of the image it is still higher than actual image. On the service deployed we can change height and width based as below from query params to test that
https://s-usweb.dotomi.com/imageresizer/63249/?img=https%3A%2F%2Fs-usweb.dotomi.com%2Fimages%2F63249%2FADS_MP_60682%2F970x250%2Fbg_img_CAR_Summer_OrangeJuice_20240329.webp&w=1800&h=350

from sharp.

lovell avatar lovell commented on September 27, 2024

The input WebP image was created with a "quality" ("Base Q") of approximately 44.

$ webpinfo -bitstream_info bg_img_CAR_Summer_OrangeJuice_20240329.webp 
File: bg_img_CAR_Summer_OrangeJuice_20240329.webp
RIFF HEADER:
  File size: 137626
Chunk VP8X at offset     12, length     18
  ICCP: 1
  Alpha: 0
  EXIF: 1
  XMP: 0
  Animation: 0
  Canvas size 1940 x 500
Chunk ICCP at offset     30, length    488
Chunk VP8  at offset    518, length 136914
  Width: 1940
  Height: 500
  Alpha: 0
  Animation: 0
  Format: Lossy (1)
  Parsing lossy bitstream...
  Key frame:        Yes
  Profile:          0
  Display:          Yes
  Part. 0 length:   19756
  Width:            1940
  X scale:          0
  Height:           500
  Y scale:          0
  Color space:      0
  Clamp type:       0
  Use segment:      1
  Update map:       1
  Update data:      1
  Absolute delta:   1
  Quantizer:        44 37 31 19
  Filter strength:  14 8 6 17
  Prob segment:     126 53 184
  Simple filter:    0
  Level:            17
  Sharpness:        0
  Use lf delta:     0
  Total partitions: 1
  Base Q:           44
  DQ Y1 DC:         0
  DQ Y2 DC:         0
  DQ Y2 AC:         0
  DQ UV DC:         -2
  DQ UV AC:         -2
Chunk EXIF at offset 137432, length    194

The default WebP output "quality" setting is 80.

https://sharp.pixelplumbing.com/api-output#webp

from sharp.

sthpratik avatar sthpratik commented on September 27, 2024

Thank you for the quick feedback. Appreciate taking time reviewing it.

from sharp.

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.