remove thumbwidth check not processong for audio

some audio files will upload with a VIDEO stream of the album art and not get given dimensions
OR a waveform audio thumbnail, causing content-jumping because hasThumbs is true but there
is no geometry.thumb*
merge-requests/208/head
Thomas Lynch 4 years ago
parent e358f7c18f
commit 5345bb7c0c
  1. 2
      models/forms/makepost.js

@ -355,7 +355,7 @@ ${res.locals.numFiles > 0 ? req.files.file.map(f => f.name+'|'+(f.phash || '')).
}
}
if (processedFile.hasThumb === true && type !== 'audio') {
if (processedFile.hasThumb === true) {
if (processedFile.geometry.width < thumbSize && processedFile.geometry.height < thumbSize) {
//dont scale up thumbnail for smaller images
processedFile.geometry.thumbwidth = processedFile.geometry.width;

Loading…
Cancel
Save