-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Instagram] gallery-dl not downloading best image quality available #2666
Comments
Related to #941. Instaloader is the only tool that I know of that can download pictures in the highest resolution |
Are you using cookies? That link gives me a 1440x1800 image: ❯ gallery-dl -j -- "https://www.instagram.com/p/CejXi9LLCgx/"
[
[
...
],
[
...
{
...
"height": 1800,
...
"width": 1440
}
]
]
❯ mediainfo .\2856230145900685361.jpg
General
Complete name : .\2856230145900685361.jpg
Format : JPEG
File size : 150 KiB
Image
Format : JPEG
Width : 1 440 pixels
Height : 1 800 pixels
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Compression mode : Lossy
Stream size : 150 KiB (100%) |
I was using my login, but just tried with cookies and still got 1080x1350. I also cleared the cache. Does the Instagram page from where the cookies are exported matters? |
What's the output of Here's mine: Output❯ gallery-dl --verbose -K -- "https://www.instagram.com/p/CejXi9LLCgx/"
[gallery-dl][debug] Version 1.22.1
[gallery-dl][debug] Python 3.10.4 - Windows-10-10.0.19044-SP0
[gallery-dl][debug] requests 2.28.0 - urllib3 1.26.9
[gallery-dl][debug] Starting KeywordJob for 'https://www.instagram.com/p/CejXi9LLCgx/'
[cookies][debug] Extracting cookies from <path/to/firefox/profile>\cookies.sqlite
[instagram][debug] Using InstagramPostExtractor for 'https://www.instagram.com/p/CejXi9LLCgx/'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): i.instagram.com:443
[urllib3.connectionpool][debug] https://i.instagram.com:443 "GET /api/v1/media/2856230145900685361/info/ HTTP/1.1" 200 3744
Keywords for directory names:
-----------------------------
category
instagram
fullname
Naiichiru ♡ Dokomi 2022
owner_id
1603742415
post_id
2856230145900685361
post_shortcode
CejXi9LLCgx
subcategory
post
username
naiichiru
Keywords for filenames and --filter:
------------------------------------
category
instagram
date
2022-06-08 17:26:28
display_url
https://scontent-lcy1-1.cdninstagram.com/v/t51.2885-15/286314818_2161426960690214_1010258721426855784_n.jpg?stp=dst-jpg_e35&_nc_ht=scontent-lcy1-1.cdninstagram.com&_nc_cat=102&_nc_ohc=zc2jah5_-o4AX-uq8y3&tn=vg42LhptRWJePtdm&edm=ALQROFkBAAAA&ccb=7-5&ig_cache_key=Mjg1NjIzMDE0NTkwMDY4NTM2MQ%3D%3D.2-ccb7-5&oh=00_AT9OW68ZU2d41P4Rq1Sek7-l12WGg1dGAPCAUIYvClPlIQ&oe=62A859B0&_nc_sid=30a2ef
extension
jpg
filename
286314818_2161426960690214_1010258721426855784_n
fullname
Naiichiru ♡ Dokomi 2022
height
1800
media_id
2856230145900685361
num
1
owner_id
1603742415
post_id
2856230145900685361
post_shortcode
CejXi9LLCgx
shortcode
CejXi9LLCgx
subcategory
post
tagged_users[][full_name]
𝔈𝔩𝔦
tagged_users[][id]
915378882
tagged_users[][username]
chaaierii
username
naiichiru
video_url
None
width
1440
I'm using |
btw:
That requests version is very new, was literally just released 3 hours ago. |
That might be because I migrated from the release binaries of |
Before upgrading gallery-dl: Output
After upgrading: Output
So the issue is solved? 🤔 |
How to use it? |
Either on the CLI with: or in the config file like this |
Does getting the high resolution image only works for individual posts? I've been trying with whole profiles and it downloads the 1080x1350 version |
With this change, everything is using the newer REST API endpoints providing higher-quality photos except the now obsolete '/channel' feed.
With the latest commits, gallery-dl can now download high(er) resolution photos in all cases (up to 1440px in width), including whole profiles. The only case that still uses an old GraphQL endpoint with low resolution media is |
So for reels media type there is no higher resolution videos available? |
@afterdelight They already download at 720p which is the highest resolution available as far as I know |
i mean there is only one resolution available for reels? Not two, like low resolution and high resolution version? |
Well, at least when logged in, video posts like this one do have several available sizes. This post has both a
|
Why is the bitrate info isnt available to see? |
It is available as
Yes, always has been. |
Is there a specific option needed to use the latest commits for a whole profile? I just got the new .exe, but I'm still getting the 1080x1350 when downloading by profile; I checked an individual post and it was able to be a 1440px DL that way. |
What do yo mean by new .exe? Then the latest changes should be included. They're not included in the latest release version 1.23.1 |
install version |
Is there still any benefit in using this over I could not find any mentions here in the issues about which cookies are necessary and which aren't.. It's probably not so simple as Twitter, where you only need I just checked in Chrome, and I have 9 different cookies on my Instagram page.. |
You only "need" The login performed by gallery-dl with given username and password "works" in the sense that it manages to get a |
Right, makes sense. It seems there's also a Using exported cookies is probably more reliable, then? |
gallery-dl/gallery_dl/extractor/instagram.py Lines 132 to 133 in fce6642
Exported cookies is what I'm personally using together with |
Good to know. I'm also using exported cookies for Instagram now.. But why could disk writes be an issue with |
I noticed this issue in this post. Using the script Instagram Download Button I got a 1440x1800px image, while with gallery-dl the downloaded image only has 1080x1350px.
The text was updated successfully, but these errors were encountered: