working of labelary viewer


I want to convert my png image to ZPL code while printing the image through Zebra GC420t. When I uploaded the image to the  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


Thanks in advance