bakape / thumbnailer

Go media thumbnailer
MIT License
154 stars 36 forks source link

Corrupt thumbnail image if upload image from captcha (150x150 JPG) #69

Open nekto-nekto opened 3 years ago

nekto-nekto commented 3 years ago

All images from the captcha (150x150 JPG) after scaling the right edge is corrupted to a width of 6 pixels.

Source image (jpg): 65472132index.jpg Thumbnailed (webp): 65472132index.webp

thumbnailer v2.6.6

pacman -Q --info ffmpeg

ffmpeg 2:4.3.1-4 x86_64 libavcodec.so=58-64 libavdevice.so=58-64 libavfilter.so=7-64 libavformat.so=58-64 libavutil.so=56-64 libpostproc.so=55-64 libswresample.so=3-64 libswscale.so=5-64

ffmpeg -v

ffmpeg version n4.3.1 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 10.2.0 (GCC) configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librav1e --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-shared --enable-version3

bakape commented 3 years ago

Can't reproduce. It's not scaling, because it already fits the target size. Could be libwebp. What version is FFmpeg linked against?

bakape commented 3 years ago

Actually, if you are talking about meguca, it's github.com/chai2010/webp that does the WebP encoding. What is the libwebp version on your system?

nekto-nekto commented 3 years ago

@bakape, sorry for late answer. libwebp 1.2.0-1 in system github.com/chai2010/webp v1.1.0