• Resolved Rookie

    (@alriksson)


    alriksson (@alriksson)
    18 hours, 49 minutes ago
    Never worked for me. You make it possible to upload but it is not correlating correctly with the rows in .htaccess. Always shows a broken image with your plugin, the only thing that works for me is manually add everything.

    Plugin Authorenshrined (@enshrined)
    26 minutes ago
    Hi alriksson,

    I’ve just tested this locally and can confirm that SVGZ files are uploading and displaying correctly. If you’re seeing a broken image I’d imagine that your server isn’t serving the correct headers for the file.

    If you’d like to look into this further please open your own support ticket so that I can track it and help.

    Cheers,
    Daryll

    alriksson (@alriksson)
    0 hours, 1 minutes ago
    I checked that and it is served as Content-Type:image/svg+xml
    Okay, I open a ticket for that cool.

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Contributor Daryll Doyle

    (@enshrined)

    Hi alriksson,

    Thanks for opening a new support topic for this issue.

    I’ve double checked locally and there was an issue with uploading SVGZ’s. I’ve just pushed up a fix in 1.3.4 so I’m hoping that this will fix it for you. The directory has updated to you should get the update fairly soon.

    See here: https://enshrined.co.uk/svgz-test/ for the fix in place in WordPress.

    Also just double check that you have AddEncoding gzip svgz in your .htaccess so that the svgz is served wth the gzip header

    Let me know how you get on with 1.3.4

    Cheers,
    Daryll

    Thread Starter Rookie

    (@alriksson)

    Thank you! I told ya! I was right ??

    I will have a look at it later this week, have a few other things in the pipeline. Do you by any chance plan to implement media snippet so I can see what the image is representing in the media library when I upload SVG/SVGZ. Would be nice but not important.

    Plugin Contributor Daryll Doyle

    (@enshrined)

    Haha yep, unsure why my initial tests worked. May have missed something from the release or had another plugin locally that was affecting it.

    No worries, let me know how you get on when you’ve tested it.

    As for implementing previews in the media library, this isn’t something that’s at the top of my list for now, although I’m not opposed to looking into it when I get a moment.

    Thread Starter Rookie

    (@alriksson)

    No worry perfect! What about the sanitizer, I’ve uploaded a bunch of images without your plugin. Will it be sanitized or do I need to reupload them?

    I see fix that when you have time ??

    Plugin Contributor Daryll Doyle

    (@enshrined)

    Currently it only hooks in on upload, once the SVGs are on the server, the risk has already started XML bombs etc so hooking in after upload defeats the point a bit.

    If you’re happy with the SVGs you have up there and feel they’re safe then I see no reason to re-upload everything.

    Plugin Contributor Daryll Doyle

    (@enshrined)

    I’ve just pushed up V1.4.0 which includes previews in the admin media area, enjoy ??

    Thread Starter Rookie

    (@alriksson)

    Oh sweet! No the thing is that I don’t feel safe! ?? So I thinking about reupload everything.

    Thanks you man!

    Plugin Contributor Daryll Doyle

    (@enshrined)

    No problem at all @alriksson!

    Thread Starter Rookie

    (@alriksson)

    Still facing issues with uploading SVG and SVGZ, just got this error message:
    example.svgz
    HTTP error.

    My htaccess-file includes following code:
    AddType image/svg+xml svg
    AddType image/svg+xml svgz

    AddEncoding gzip svgz

    • This reply was modified 7 years, 9 months ago by Rookie.
    Thread Starter Rookie

    (@alriksson)

    Reinstalled the plugin and got this error message:

    View post on imgur.com

    Plugin Contributor Daryll Doyle

    (@enshrined)

    Hi @alriksson,

    It seems as if your PHP version hasn’t been built with multibyte support. I think I’ve managed to fix this in 1.4.2 but can you give it a try and let me know?

    Cheers,
    Daryll

    Thread Starter Rookie

    (@alriksson)

    @enshrined let me check later today, and I’ll get back to you. I’m not sure which PHP version I have at the moment, 5.6 or 5.7 should be necessarily for other features and plugins to work properly. I would like to upgrade to 7, but not all plugins are working properly with that version.

    I let you now during the day thanks.

    Thread Starter Rookie

    (@alriksson)

    @enshrined it works perfectly! Sweet dude, well done! FYI if you want to fix this feature image can also be fixed. Just in case you would like to know ??

    View post on imgur.com

    Plugin Contributor Daryll Doyle

    (@enshrined)

    @alriksson, that’s amazing. Thanks for letting me know.

    Yep, saw that bit the other day, will get a fix up for it when I have some time to play with it, shouldn’t be too complex though ??

    Thread Starter Rookie

    (@alriksson)

    @enshrined just found out that images that aren’t designed 100% in illustrator will not show with your plugin. I use a lot of print screens save them within Illustrator and save as SVGZ, amazing quality and does not affect the site performance. But I saw that your plugin does not show this kind of images. It’s critical now since I switched to your plugin and there is a lot of “empty images”.

    Please look into this asap! ??

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘SVGZ is not visible’ is closed to new replies.