You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're trying to add a watermark by composing an SVG dynamically and passing it to Imgproxy.
We're doing that by creating an <svg...> object, then creating a data url for the object and passing it, base64encoded, to the service. However we're encountering a Can't download watermark: Unknown scheme: data.
Using data URLs doesn't look like a good idea to me. Your example is a 700+ character long string, and you can easily exceed the browser's limit on the URL length with it.
If you generate those watermarks on the backend side, it's better to move the watermark generation to a separate endpoint and use it as a watermark URL.
If it's not an option, I can add a watermark_data option. It'd be simpler than adding data URLs support.
We're trying to add a watermark by composing an SVG dynamically and passing it to Imgproxy.
We're doing that by creating an
<svg...>
object, then creating adata
url for the object and passing it, base64encoded, to the service. However we're encountering aCan't download watermark: Unknown scheme: data
.Here is the raw data:
Here is the same encoded data:
Is there any way to support inline images?
The text was updated successfully, but these errors were encountered: