For web and desktop application it is often required to auto generate thumbnails of single image or multiple image.
It is possible to convert AI, EPS, PDF and PS to image file of choice.
This can be done different ways. I will show you how to do it using well recognized libraries for free. This requires 3 steps.