Skip to content

avif file compression size huge differences #3773

Answered by jcupitt
suntong asked this question in Q&A
Discussion options

You must be logged in to vote

Hello again. I tried here and I see:

$ vips copy smart-crop.jpg x.avif
$ ls -l x.avif smart-crop.jpg 
-rw-rw-r-- 1 john john 79289 Nov 30 10:06 smart-crop.jpg
-rw-r--r-- 1 john john 18530 Dec  2 10:48 x.avif

That's with my own libvips, so I agree your build looks odd.

I had a quick look at your dockerfile:

  • you are using a very old version of libheif, I would swap to something newer ... I'm on 1.16.2, but current is 1.17.5. That might be the cause of the difference
  • you are building against imagemagick -- are you certain you need it? There are security implications if you are exposing this build to untrusted data
  • you don't need gobject-introspection, gtk-doc-tools, swig, libgif, libgsf-1
  • y…

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@jcupitt
Comment options

@suntong
Comment options

@suntong
Comment options

@jcupitt
Comment options

@suntong
Comment options

Answer selected by suntong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants