working of labelary viewer

Hi

I want to convert my png image to ZPL code while printing the image through Zebra GC420t. When I uploaded the image to the http://labelary.com/viewer.html  it converts to the ZPL

I am using the PHP as a server-side and some javascript API to print through the printer it works for but not for image printing

I want the Online API which converts the image to the ZPL

If available share the link

When I try to print the image this is what I get

IMG_20181001_162622567.jpg

Thanks in advance