uploads/picture.png stored in redis when uploaded, need uploads/picture.png instead
-
closes #706, refactor admin image uploads, fixed gif uploads · NodeBB/NodeBB@6c30437
Node.js based forum software built for the modern web - closes #706, refactor admin image uploads, fixed gif uploads · NodeBB/NodeBB@6c30437
GitHub (github.com)
Not sure if it resolved the gifs being stored as pngs problem. I couldn't reproduce that on my environment.
This should turn image links into relative links for all uploads (category images, favicon, sitelogo, user profile images).
I also noticed animated gif uploads totally broke. It was working at some point since both I and @psychobunny had animated gifs but if you try to upload an animated gif right now on this forum it won't show up. I figured out it was due to this
im.crop({ srcPath: uploadPath, dstPath: uploadPath, width: 128, height: 128 }, function (err, stdout, stderr) { done(err); });
After some googling and SO the following seems to work for cropping animated gifs .
im.convert([uploadPath, '-coalesce', '-repage', '0x0', '-crop', '128x128+0+0', '+repage', 'uploadPath'], function(err, stdout) { done(err); });
Let me know if this resolves your issues.