PaciakPL / NodeBB

Node.js based forum software built for the modern web
https://nodebb.org
GNU General Public License v3.0
0 stars 1 forks source link

fixed image orientation on uploads #15

Closed tosyu closed 6 years ago

tosyu commented 6 years ago

this fixes bug #14

Little hacky solution but it works, the image is resampled (not rescaled) and it depends on imagemagick plugin doing autoorient on each operation. I would use normalise if it would not generate png images instead of jpgs, or write a custom hook to fix orientation If I would have more time. But this is sufficient for the time being.

ic3fresh commented 6 years ago

Actually why are some images .png and some .jpeg? Is there any hint in the code?

tosyu commented 6 years ago

that is not a problem because I do not call normalise function, so the format is not changed