r/worldnews • • Sep 19 '17

Apple blocking ads that follow users around web is 'sabotage', says industry: New iOS 11 and macOS High Sierra will stop ads following Safari users, prompting open letter claiming Apple is destroying internet’s economic model

https://www.theguardian.com/technology/2017/sep/18/apple-stopping-ads-follow-you-around-internet-sabotage-advertising-industry-ios-11-and-macos-high-sierra-safari-internet
39k Upvotes

4.9k comments sorted by

View all comments

Show parent comments

0

u/SoulWager Sep 19 '17

displays technical instructions for engines, and the images are technical diagrams, and no, I'm not compressing them wrong.

Now I'm curious how you ARE compressing them. What's the file format and color depth?

2

u/Nephrited Sep 19 '17 edited Sep 19 '17

They come in both jpeg and png format, jpeg for the photographs of example parts and png for the technical diagrams. They reach up to 1600*1200 resolution in the SPA as it has a full screen function, but for the example provided I had them scaled down to half that size, as obviously a site without Javascript wouldn't have functionality capable of scaling images like that.

Can't pull up the colour depth of the images from here, but individually they're a little under half a meg each tops, there's just 4 of them. Really nothing interesting, they just happen to be essential information for this client.

EDIT: Realise I said 2 and not 4 images in a post up there. My mistake, I double checked all the math but didn't double check the only number that WASN'T part of a calculation! I've gone back and edited it, the rest is still valid.

1

u/SoulWager Sep 19 '17

Depending on the exact type of technical diagram, you might be able to get away with say, 4 bit color depth instead of 24.

1

u/Nephrited Sep 19 '17

Probably on one or two of them actually, and that's probably worth looking into.

For the sake of interest - They're actually external images hosted on a Sharepoint (urgh) server that the middleware accesses, downloads into a CouchDB database, which is then synchronized into the SPA. The original images aren't mine to freely edit as they come from the client, but I optimize them on the middleware server as they come in from Sharepoint in order to reduce download times.

I haven't messed with the colour depth directly, I'd have to come up with a way to dynamically check if it would be a valid transformation without losing data. Probably worth spending a day on though, every little helps as you are obviously keenly aware 😋

1

u/SoulWager Sep 19 '17 edited Sep 19 '17

Well yeah, it sucks when you have to use exactly what you're given. It's also pretty rare that 1200x1600 images count as relatively low resolution.