Skip to main content
Topic: Feature request: Image Proxy (Read 15617 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: [ADDON] Image Proxy

Reply #90
I  have improved the right click and save behavior.  It will now save as the original filename and not the long name. For example the image posted above currently is
Code: [Select]
_var_customers_webs_elkarte_community_cache_img_cache_597563c0eada13027d38a842a2addab3
and now it will be
Code: [Select]
notizia_nuovi_servizi_digitali_certificato_vaccinalex.jpg
That of course is the cached version not the original and prevents the cached name from showing.

As for opening the image in a new tab I see
Code: [Select]
https://www.elkarte.net/community/imagecache.php?image=http://www.regione.lazio.it/binary/rl_main/tbl_news/notizia_nuovi_servizi_digitali_certificato_vaccinalex.jpg&hash=597563c0eada13027d38a842a2addab3
I'm not seeing the cached name, was there something else you were doing?

Also If we want to go all JS on this, I can fetch the cached image, async, and set the src as a data url.  Then when you open the image in a new tab all you would see is data:image/jpeg;base64,/9j/4AAQSkZJ..... I have that on my local as well.  That is nicer than seeing he imagecache.php stuff (Just called in the background via JS instead) All depends on what everyone would like.
Be safe, Be kind, Happy Programing

Re: [ADDON] Image Proxy

Reply #91
I was referring to this:
X

The original name would be fine for me, or whatever else, but not the full path.
The images embedded from http are a thing from the past, they are very rare nowadays.
sorry for my bad english

Re: [ADDON] Image Proxy

Reply #92
What browser are you using?   Is that with open image or open image in new tab ?  I'm not seeing that on mine.

ETA: Oh I see that in Fx now
Be safe, Be kind, Happy Programing

Re: [ADDON] Image Proxy

Reply #93
This should not reveal the cached name
Be safe, Be kind, Happy Programing

Re: [ADDON] Image Proxy

Reply #94
Thanks Spuds!  that works without showing the full path.

I am using Firefox 88.
sorry for my bad english