We have plenty of GIF images which author wants to upload we want to compress this image preferably dynamically that means on the fly instead of storing its rendition in DAM. The main catch here is that after the compression the animation of the GIF image should not be lost. Please note that I have tried below options here :
Layer layer = ImageHelper.createLayer(res1); layer.write(image.getMimeType(), 255, response.getOutputStream());
I have gone through this link, but couldn't find the right working solution so please don't mark this question as duplicate.
Lastly ImageMagick is better solution but this involves maintaining images of different renditions in DAM isntead of dynamic generation.
Any suggestions or thir party APIs which can be used are welcome.
ImageMagick app is to have pre sized images (image renditions) and load them based on need. Adobe also provide scene 7 however that needs additional license and it works pretty much ImageMagick with some additional features.
What problem do you see in loading & keeping multiple renditions?