fix issue with audio waveform thumb width

merge-requests/208/head
Thomas Lynch 4 years ago
parent 5ff814de62
commit 98f2983725
  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) {
if (processedFile.hasThumb === true && processedFile.geometry && processedFile.geometry.width != null) {
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