6 ms·
This looks like a nice alternative to https://squoosh.app/ https://squoosh.app/. I particularly like the "resize image to a particular size" (https://www.webuti
by jeroenhd 5y ago
This looks like a nice alternative to https://squoosh.app/ https://squoosh.app/. I particularly like the "resize image to a particular size" (https://www.webutils.app/compress-image-to/50kb https://www.webutils.app/compress-image-to/50kb) feature, that's very useful.
Sadly, because of the nature of the web, one can never be sure that the image actually stays within the browser. There's no way to prevent it from secretly sending everything you convert with this to some shady website because it runs in the browser. I trust the people behind this just fine, but sadly the promise of offline-level privacy and running code inside the browser just don't go well together.
- tyingq 5y agoI tried making a chrome dev tools network throttling profile set to "0 kbps", and it seems to work...you get "no internet" if you try and reload the page, xhr in the console fails, etc. So cumbersome, but it does work.
- akmittal 5y agoI guess one may disable wifi+data if on mobile. Disconnect wifi of on Desktop, but agree with OP there is no good way to check if processing is actually happening locally.
- gruez 5y ago>if you try and reload the page, xhr in the console fails, etc. what about: * DNS leaks (eg. trying to connect to payloadhere454098357987.attacker.example, leaks payloadhere454098357987 to the attacker) * websocket * webRTC * prefetching * service workers (background sync) * beacons * CSP reports
- tyingq 5y agoSure, there is probably more needed. Some of your list is covered though. For example, I tried websockets, and those are blocked by the throttle.
- sokoloff 5y agoA typical user might not be able to easily be sure, but using dev tools (or network monitoring tools), it’s definitely possible to know.
- akmittal 5y agoI actually use wasm codecs built by squoosh team. Squoosh is freaking awesome. Resize to particular size idea came, when online service asked me to upload image upto 25KB. I had to just keep on changing size till image became 25KB.
- mobilio 5y agoSquoosh is WASM version of popular Mac App ImageOptim
- scrollaway 5y ago> Sadly, because of the nature of the web, one can never be sure that the image actually stays within the browser. There's no way to prevent it from secretly sending everything you convert with this to some shady website because it runs in the browser. The thing is, that logic applies just as well to desktop apps. There's never any guarantee on either desktop or web unless you have very specific counter-measures in place (firewalls, airgapping, ...). It's just "closer to the web" when it runs in the browser, but if malice is the intent, it's as likely on either. Desktop apps are just "harder" to install.
- b112 5y agoThis is why one reason why sensible Linux distros go though a multi-year process of release stabilization, assessment and testing. While not impossible, the likelihood of, say, imagemagick doing this, while going through this process, is extremely improbable. I agree that just downloading apps off random websites is every bit as risky as a browser app. But who does that?! (The last statement was sarcastic, and aimed at the curl | bash crowd, the nodejs crowd, the composer crowd... these things are the polar opposite of trusted, secured, audited, safe, sensible.)
- dahart 5y agoSeems like you’ve conflated a lot of things here. Binaries in the Ubuntu Snap store are not reviewed for years, it’s days at best (and that’s only for classic mode, the confined apps are released without human review). Software you get from NPM isn’t a random website nor is it a desktop binary, it’s source code you can read. I trust random web pages much more than I trust Linux Desktop apps, because the browsers are far more audited and safe than applications, and I have complete control over what data I put in the browser.
- b112 5y agoSo you pick one linux variant which doesn't follow my statements, then presume I'm conflating? Just because ubuntu is terrible, and uses snaps, does not mean all distros do. You should have taken the high road, and debated what I was discussing here. In Debian proper, you can read the source code of everything too. After all, old school distros like debian are they very reason you have such freedoms. They've been fighting the good fight for decades, working to keep OSS running pure, untarnished from closed licenses! The very idea that you think Linix distros are less audited than npm, and have less accessible source code, is, to me, incomprehensible. It also shows how little you know about OSS, while you use the very tools giants crafted for you. This doesn't make me mad, it makes me very, very sad.
- jimkleiber 5y agoAndroid used to have a permission for internet access and when I was building an app that I wanted to prove to people that was local-only, fully offline, it helped to show that the app didn't even have permission to access the internet. I wish browsers, Android, and iOS had this option so that users could be confident that the app/site doesn't have access to the internet. Maybe a little tricky with a browser but perhaps it could be possible somehow.
- osrec 5y agoOffline-level privacy is not guaranteed with native apps either, so please don't live under that incorrect notion! If you do not trust the developer of a web app, you can always disconnect from your Wi-Fi, use the app, close the tab and then reconnect to your Wi-Fi.
- quaintdev 5y agoWell at least on Linux I can do something like below with native apps firejail --net=none firefox Disables internet for firefox
- extra88 5y agoSo do that to the browser running the web app after you've downloaded it.
- jeroenhd 5y agoFirewalls have been built into Windows for around 19 years now. There are tons of other options on all other platforms (thought Apple's platforms have more restrictions than others) to prevent outgoing connections. Mobile firewalls seem to use built-in VPN functionality and can often block per domain and per app as well. Web browsers don't come with such a firewall, and they need to be permitted by the system firewall to operate normally. It's technically possible to block outgoing requests with addons and configuration, but that's a pain to get right, especially compared to the simple toggle you can find in most OS firewalls.
- osrec 5y agoYou can throttle (including completely disable) the internet per tab via devtools in most modern browsers...
- jeroenhd 5y agoYou can, and you can also unplug the ethernet cable, but without any user-friendly, ways that are _actually intended_ to do, so it's easy to get wrong. For example: you enable throttling, upload a picture, that picture gets buffered by a serviceworker, you close the tab, therefore closing the dev tools and disabling the throttling you set up, and the serviceworker uploads whatever you resized to the server anyway. Or: the application just tries to upload stuff whenever you open the page, turning the throttling solution into a race between you and your browser. I don't think using dev tools intended to replicate offline-only behaviour are a good way to actually enforce offline-only behaviour.
- xml 5y agoCan't you just unplug the Ethernet cable/turn off the Wi-Fi module? (At least if the website was not lazy-loading resources.)
- deleted 5y ago[deleted]
- deleted 5y ago[deleted]