plegall / Piwigo-GThumb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some pictures à stretched

guilhelm opened this issue · comments

Hi,
I love the way gthumb displays the album but, in some cases, portrait pictures are stretched with a width of 300 like landscape pictures. The thumbnail in it self is ok when displayed alone.

Thumbnails are created by a batch with imagemagick with the following command 👍

convert "${file}" -auto-orient -resize 792x594 -write mpr:baseline +delete \
                mpr:baseline -write "${thumbDir}${fnNoExt}-me.${fnExt}" +delete \
                mpr:baseline -resize 144x144 -write "${thumbDir}${fnNoExt}-th.${fnExt}" +delete \
                mpr:baseline -resize 240x240 -write "${thumbDir}${fnNoExt}-2s.${fnExt}" +delete \
                mpr:baseline -resize 576x432 -write "${thumbDir}${fnNoExt}-sm.${fnExt}" +delete \
                mpr:baseline -resize x200 -write "${thumbDir}${fnNoExt}-cu_s9999x200.${fnExt}" +delete \
                mpr:baseline -define jpeg:size=144x144 -thumbnail 120x120^ -gravity center -extent 120x120 "${thumbDir}${fnNoExt}-sq.${fnExt}"

Do you have any clue of what might be the problem ? are pictures missing some exif information ?

Thanks

Guilhelm