skip to Main Content

SVG from PHP script is not working in img src

I'm trying to open SVG file first in PHP and then return this data: $file = dirname(__FILE__) . $_GET["file"] . ".svg"; if (!file_exists($file)) { $file = dirname(__FILE__) . $_GET["file"] . ".png"; if (!file_exists($file)) { throw new NotFoundHttpException(); } else header('Content-Type:…

VIEW QUESTION

Xcode – Load SVG String to UIImage (Swift)

I have a SVG Data downloaded from Internet in SVG format. <svg viewBox="0 0 600 450" xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="600" height="450" fill="#E9F0FC"></rect><g transform="translate(0,410)" fill="none" font-size="10" font-family="sans-serif" text-anchor="middle" style="font-size: 8px;"><g class="tick" opacity="1" transform="translate(49.5,0)"><text fill="currentColor" ... And I have a UIImageView where…

VIEW QUESTION

Cannot save some SVG to JPG by pyvips

I met an issue when I convert this SVG to image and I cannot workaround, does anyone know the possible reason? Error: thread '<unnamed>' panicked at 'Cairo error "out of memory"', /build/librsvg-RSSQuy/librsvg-2.48.9/vendor/cairo-rs/src/enums.rs:274:13 note: run with `RUST_BACKTRACE=1` environment variable to display…

VIEW QUESTION

I search source of svg for socials – Telegram API

In custom html/css template I have instagram svg icon, defined as : <div class="user_info__links"> <a href="#" class="user_info__links-btn user_info__links-instagram"> <svg class="icon icon-instagram" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M14.8999 0H6.10017C2.73652 0 0 2.73652 0 6.10017V14.8998C0 18.2635 2.73652 21 6.10017 21H14.8998C18.2635…

VIEW QUESTION
Back To Top
Search