ubershmekel / redditp

Convert any reddit page to a presentation or slide show
https://redditp.com
MIT License
264 stars 103 forks source link

Support images from Redgifs #161

Open nerdyVanilla opened 1 year ago

nerdyVanilla commented 1 year ago

Have come across a few subreddits where they allow the use of WebP images. As I going through no image will be displayed. Looking at the console, I see : Failed to identify redgif name [EmbedIt.js:69:13](https://redditp.com/js/EmbedIt.js)

https://redditp.com/r/bigtitsinbikinis/

This is one of the posts that causes this error https://www.reddit.com/r/bigtitsinbikinis/comments/16ddm84/perfect_fit/

Looks like it should be a jpeg, but when I use the media link the image becomes a WebP.

nerdyVanilla commented 3 months ago

redgif images have a URL for image like this "https://i.redgifs.com/i/(redgifId).jpg". Entering that URL in the browser will redirect to "https://www.redgifs.com/watch/(redgifId)". Viewing the image in another tab has the URL as "https://thumbs44.redgifs.com/(redgifId)-medium.jpg?expires=1724509200&signature=v2:a7c6d355546aafbc486b6ae2f949690398c9c4a901bbf0d5e5d8f88cc279293c&for=(IP Subnet)&hash=7011125643".

Not sure there is an easy way to get the image to display.

nerdyVanilla commented 2 months ago

On reddit the images are "https://i.redgifs.com/i/(redgifId).jpg" and generally that URL redirects you to a web page. The actual image URL is "https://files.redgifs.com/(RedGifId)-medium.jpg". The ID for the file changes from lowercase compound word into a captialized compound word.