Closed benschac closed 1 year ago
Did a bit more research here.
Problem: load a giant file on a payment. Any user who hits landing
will endup downloading the entire file which will result in a slower load time and probably a higher IPFS/Infura bill.
Pinata has an image optimization product / feature.
docs: https://docs.pinata.cloud/gateways/image-optimization#pinata-image-optimization and I implemented it in this PR: https://github.com/jbx-protocol/juice-interface/pull/2679
this could be out dated but, it doesn't seem like there's anyway to resize images directly from IPFS.
https://community.infura.io/t/ipfs-gateway-image-optimization/5487
also noticed we're nixing pinata everywhere so it doesn't matter: https://github.com/jbx-protocol/juice-interface/pull/2687/files
I did see a solution with cloudflare workers that looked promising: https://developers.cloudflare.com/images/image-resizing/resize-with-workers
wyat @tomquirk
Closing this for now as its low prio
Summary
The end user is downloading something like 3MB from pinata / ipfs
I have a PR addressing this shortly
Steps to reproduce
What is the current bug behavior?
What is the expected correct behavior?
Relevant logs and/or screenshots
Environment