Image format

how do i convert a png buffer to a gif buffer in node js, like when i save that gif buffer and view it, it should just look like a normal png file, but just the file format should be changed to gif
UU
Unknown User849d ago
R
RelativPerspektiv849d ago
oh ok but i wanted the result as a buffer, not as a file
UU
Unknown User849d ago
R
RelativPerspektiv849d ago
ok