Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2017-03-01 09:01:31

sandersonlindsay
Member
From: Whitehorse, Yukon
Registered: 2012-09-25
Posts: 26
Website

Vector support in Masthead

Is it possible to load a vector image into the masthead? If not, what are best practices for a pixel image to look good on various devices/resolutions?

Offline

#2 2017-03-01 15:50:32

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Vector support in Masthead

Not so much. The web favors JPGs. Depending on your image, then PNG will probably yield best file quality and scaling, but it best employed for things such as logos, simple graphics, etc. For bad example, a photo saved in PNG is gargantuan, so you would not want to use PNG for a photo banner.

When it does come to vectors on the web, I think SVG is the thing. There's good support for SVG in modern browsers, but support gets spotty as you backpedal through time, and you'd do well to read up on the topic before deciding to go that route.


Matt

The Turning Gate, http://theturninggate.net

Offline

#3 2017-03-02 13:58:26

sandersonlindsay
Member
From: Whitehorse, Yukon
Registered: 2012-09-25
Posts: 26
Website

Re: Vector support in Masthead

Hi Matthew,

Right, I have a PNG in place now, but while it looks fine on my non-Retina MBP screen, I feel it looks ever so slightly fuzzy on my iPhone.

I did try to upload an SVG version via the Upload Image tool within Backlight, but that didn't work due to non-supported file type.

Are there any other avenues I could pursue, without getting overly technical?

Thanks,
Stephen
andersonlindsay.com

Offline

#4 2017-03-02 18:04:34

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Vector support in Masthead

Without getting overly technical, no not really. Getting technical, you could use PHPlugins and CSS media queries to load a higher-resolution image based on the display's pixel-density.

At some point down the line, I may start to build in support for srcset attributes, or conditional image use based on pixel density, but I'm still working to solidify the foundation before I pile on such extras.


Matt

The Turning Gate, http://theturninggate.net

Offline

#5 2017-03-02 23:00:38

sandersonlindsay
Member
From: Whitehorse, Yukon
Registered: 2012-09-25
Posts: 26
Website

Re: Vector support in Masthead

Understood. Thanks for your time, and for continued development of the Backlight platform.

Offline

Board footer

Powered by FluxBB