h2non / imaginary

Fast, simple, scalable, Docker-ready HTTP microservice for high-level image processing

Home Page:https://fly.io/docs/app-guides/run-a-global-image-service/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to watermark SVG image

foxviii opened this issue · comments

Hi, I am getting an error while trying to watermark SVG images:

  1. Watermarking text on JPG works as expected (http://192.168.127.132:9000/watermark?text=TESTMARK&url=https://raw.githubusercontent.com/h2non/imaginary/master/testdata/large.jpg)

  2. Watermarking text on SVG throws an error (http://192.168.127.132:9000/watermark?text=TESTMARK&url=https://upload.wikimedia.org/wikipedia/commons/8/85/Charts_SVG_Example_2_-_Simple_Line_Chart.svg)

  3. Error = {
    "message": "Error while processing the image: Unsupported image format",
    "status": 400
    }

Also, I encountered an error while trying to apply a svg image watermark to an svg image. Is it possible to watermark an svg image with a different svg image using imaginary?