Explorar el Código

turn off rgba on thumbnails to avoid being unable to upload files which don't fithe .contain() box

Hoppy hace 7 años
padre
commit
3420d914fc
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      server/libs/uploads-agent.js

+ 1 - 0
server/libs/uploads-agent.js

@@ -235,6 +235,7 @@ module.exports = {
     return jimp.read(sourcePath).then(img => {
       return img
         .contain(150, 150)
+        .rgba(false)
         .write(destPath)
     })
   },