h2non / imaginary

Fast, simple, scalable, Docker-ready HTTP microservice for high-level image processing
https://fly.io/docs/app-guides/run-a-global-image-service/
MIT License
5.55k stars 456 forks source link

Unable to watermark SVG image #363

Open foxviii opened 3 years ago

foxviii commented 3 years ago

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)

2) 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?