Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tpenzer
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
tpenzer
13y ago
Did a fun experiment like that here: http://thepenzone.com/svg-image/
2.
▲
by
tpenzer
13y ago
That was actually my inspiration for this. Added support for stuffing multiple different assets in a single svg file, and did it with JS to avoid redundant image requests and keep it easy to use.
3.
▲
by
tpenzer
13y ago
Vector SVG graphics absolutely do work great on retina displays. This is for serving raster retina images, and the JavaScript enables you to request only the resolution appropriate for each client.
4.
▲
by
tpenzer
13y ago
The only problem I've got with this is that the JS image generator is run for every image on every svg load. If anyone can think of a way to only run it for the target image, I'm all ears; still struggling with it for now.
5.
▲
Use SVG to Handle Retina Image Serving
(thepenzone.com)
10 points
by
tpenzer
13y ago
|
8 comments
6.
▲
by
tpenzer
13y ago
I actually wrote a recent blog post on this subject, wherein I make the case that copyright is dying, and try to come up with something better: http://thepenzone.com/content/copyright-dying-beware-accessr... I think it's definitely time w
7.
▲
Copyright is Dying, Beware of Accessright
(thepenzone.com)
2 points
by
tpenzer
14y ago
|
0 comments
8.
▲
by
tpenzer
14y ago
I guess I set up my proposal the way I did so that authors could explicitly flag assets as being available or unavailable in 2x in the most convenient way conceivable to me, because it would add inefficiency to force a choice between assumi
9.
▲
by
tpenzer
14y ago
And what about the performance penalty for the server to determine 2x availability for sites where only a fraction of images are available at 2x res? I'm also not sure I fully understand how we clue the server in on where to look for the 2x
10.
▲
by
tpenzer
14y ago
I don't understand how that resolves the issue. Let's say you have two img elements on your page, linking to their respective 1x image assets, and you have a 2x version of the image available for the first but not the second. You indicate 2
11.
▲
by
tpenzer
14y ago
It seems inflexible and potentially inefficient though. What if you have 2x assets available for some images but not others? Will the client be making two requests in all those cases? Or will it simply break?
12.
▲
by
tpenzer
14y ago
With the solution I propose, it seems like the server could be blissfully dumb, and the client could be smart and choose whether to request 2x images if the page author indicates they're available. I don't see the advantage in this regard.
13.
▲
by
tpenzer
14y ago
Why is this information put in the HTTP headers rather than the HTML for the page in question? It just seems like a relatively obscure place to hide what's bound to be a common bit of functionality; not the most noob-friendly solution. I su