Frost-for-Facebook icon indicating copy to clipboard operation
Frost-for-Facebook copied to clipboard

Downloading full-size images from posts

Open el4ctr0n opened this issue 4 years ago • 7 comments

I would like to be able to download images from posts in the quality available via the desktop web version of Facebook.

For example, I'd like to be able to download each image from this post (https://m.facebook.com/story.php?story_fbid=2991689560842073&id=100000031755553) in the quality available here after pressing "Download" (https://facebook.com/photo.php?fbid=2991686384175724&set=pcb.2991689560842073).

I appreciate you considering my request. Hope to get a response as to whether the suggested feature is going to be added.

el4ctr0n avatar Jan 13 '20 16:01 el4ctr0n

Have you tried long pressing images and opening the native viewer? Single photo posts do also have a link to the full image, so if this is specific to albums, I will take a look and see if higher res links are possible

AllanWang avatar Jan 19 '20 21:01 AllanWang

If you open both links below on a desktop computer and download the image from each page, you'll see that the "full-size" image from the mobile version has a smaller filesize than the one from the desktop version.

Desktop version: https://facebook.com/photo.php?fbid=2991686384175724&set=pcb.2991689560842073

Mobile version: https://m.facebook.com/photo.php?fbid=2991686384175724&set=pcb.2991689560842073

el4ctr0n avatar Jan 20 '20 14:01 el4ctr0n

This is maybe related...

When I use 10" tablet (1280x800, portrait orientation, 150ppi density, Acer Iconia One 10 B3-A40) And look at one "test" post with "test" picture:

  1. the picture is (very) small - less than 1/2 of screen width/height (less than 1/4 of screen area)
  2. when I "press and hold" picture - the same small picture like 1)
  3. when I "press and hold" and download - picture size is "320x426"
  4. when I click/load/open the post - the same small picture like 1)
  5. when I click "View full size" - picture is big, screen size
  6. when I click "view full size" and download - picture size is "1536x2048"

When I use my 5.5" phone (1920x1080, portrait orientation, 400 ppi density, OnePlus 3T) And look at the same "test" post (like above), the same "test" picture:

  1. the picture is nice and big, it takes almost full screen, I can see all details
  2. when I "press and hold" picture - picture is bigger, picture width is equal to screen width
  3. when I "press and hold" and download - picture size is "843x1124"
  4. when I click/load/open the post - like 1) above
  5. when I click "View full size" - like 2) above
  6. when I click "view full size" and download - picture size is "1536x2048"

Looks like something is wrong. With 10" tablet I see smaller pictures. It is hard/slow to get "bigger picture" with more details - few clicks away (plus waiting for page download).

mmm4m5m avatar Jan 20 '20 20:01 mmm4m5m

Just as an update, it is one of my higher priorities to increase the resolution of images and videos. It's just a matter of finding a good way of getting the higher res link from what the mobile site provides. For the most part, I extract the id and attempt to load the page on desktop, but more investigation will need to be done

AllanWang avatar Feb 02 '20 09:02 AllanWang

Just as an update, it is one of my higher priorities to increase the resolution of images and videos. It's just a matter of finding a good way of getting the higher res link from what the mobile site provides. For the most part, I extract the id and attempt to load the page on desktop, but more investigation will need to be done

hi , any update regarding hd video ?

bingoxo avatar Jan 08 '21 02:01 bingoxo

At the time, I believe I did some investigation for HD images. Frost should attempt to load something with higher resolution, while using what's in the newsfeed as a placeholder. I don't think I had the same luck with videos, though I believe I've seen other clients that had it. The fix also involved using multiple user agents, and after having some problems with banned accounts, I forwent any functionality requiring multiple agents.

AllanWang avatar Jan 08 '21 02:01 AllanWang

For example, I'd like to be able to download each image from this post (https://m.facebook.com/story.php?story_fbid=2991689560842073&id=100000031755553) in the quality available here after pressing "Download" (https://facebook.com/photo.php?fbid=2991686384175724&set=pcb.2991689560842073).

I just tested downloads of this photo using Frost (3.1.2) and Firefox (96) on desktop. Both download image with the same filename 81351255_2991686394175723_4387581522639585280_n.jpg in 1280x960 resolution but different in size: Frost 255 KiB, Firefox 330 KiB

I checked JPEG quality parameter using

gm identify -format '%Q' 81351255_2991686394175723_4387581522639585280_n.jpg

resulting in 65 for Frost and 75 for Firefox.

Edit: for other image I got different surprising quality numbers which makes me think above command might be unreliable

cunlem avatar Jan 27 '22 01:01 cunlem