-
Notifications
You must be signed in to change notification settings - Fork 18
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
SmugMug Source files don't download (RAW/DNG) #61
Comments
hi @cobetts , I didn't even know what source is 😅 |
@tommyblue Fair haha. Source is their additional add-on that stores RAW files alongside JPGs. I searched through documentation and didn't find a specific reference, but their support team was able to provide details on how the RAW files can be accessed and documentation. Does this help?
|
@cobetts it could, in fact. The problem is that my components don't include any raw, I need help from your side:
|
To clarify the goal, this is the component I see (under "Component": [
{
"ComponentType": "i",
"ComponentKey": "KKKKKKKK",
"DownloadUrl": "https://photos.smugmug.com/photos/XXXXXXX/0/YYYYYYYYY/D/XXXXXXX-D.jpg",
"Extension": "JPG",
"FileName": "photo.jpg",
"FileSize": 10000,
"MD5": "1234567890",
"Url": "https://photos.smugmug.com/photos/XXXXXXX/0/ZZZZZZZ/O/KKKKKKK.jpg",
"Uri": "/api/v2/library/asset/KKKKKKKK/component/i/KKKKKKKK",
"UriDescription": "Representation of a single component of an asset",
"Uris": {
"Image": {
"Uri": "/api/v2/image/KKKKKKKK-0",
"Locator": "Image",
"LocatorType": "Object",
"UriDescription": "Image by key",
"EndpointType": "Image"
}
}
}
], I need to see the same structure for a RAW file, to understand if I can extract and download the file |
Hi @tommyblue thank you for the clear walkthrough! It looks like for images with RAW files there are two components stored separately. One for the JPG and one for the RAW. I have found the JSON you requested and added it below:
|
Thanks @cobetts , I asked in the smugmug forum the possible values of the "ComponentType" field. We must understand how to clearly identify raw images |
Would the component type not be “svi”? I checked multiple RAW files and all of them were located in that ComponentType. I’m pretty sure “svi” just stand for where it’s stored, which all of my RAW files I checked are under /smugvault. The RAF extension is the RAW format from a Fujifilm camera. |
@cobetts I also think "svi" is what I should look for, but please make this test. In this zip file you'll find a Panasonic RAW: |
Hi @tommyblue I added the supplied file and checked the API, the ComponentType was still "svi", see below. I also checked a .DNG (from iPhone) and .ARW (from Sony) in addition to the .RAF (from FujiFilm) I sent originally and they all are a ComponentType of "svi" with the same JSON structure. Obviously, the "Extension" changes depending on the type of RAW file.
|
nice, I think we now know what to do to support raw files. I'll try to find some time do implement that |
@cobetts would you mind trying #64 ? |
It looks like it's missing the "smugmug-backup" file. When running with download_raw=true from the original smugmug-backup file I copied in, nothing changes. Running with DEBUG=1 I'm not seeing it reference the Component. |
@cobetts not sure we're on the same page: are you building the binary from the PR I linked or something different? The "smugmug-backup" file is not present in the source, you must either build it or download a release binary, not present here. If you need the binary, I can make it for you |
@tommyblue I'm not super knowledgeable with how this works, so if you could compile that for me, that would be great. |
@cobetts any chance to test it? |
Hi @tommyblue Sorry, I had not gotten to it until tonight. Thank you for compiling it for me. When running DEBUG=1 I get lots of empty component calls, with no RAW images downloading. |
damn, I need to check the code. Thanks for the test |
@cobetts I found an error in the SmugMug APIs: the doc page for AlbumImage reports that the response must include the Components object, but the real API request doesn't get such response. I sent a message to Smugmug support, I'll update the issue if I get a reply |
@cobetts I got a reply from the SmugMug support and they said Components APIs are not available for third party apps, although their doc isn't really clear on that matter (they're going to fix it). So, unfortunately, we cannot support RAW images 😢 |
@tommyblue Bummer! Sorry for sending in an impossible task. The response I had gotten from them said it was possible otherwise I wouldn't have asked. Thanks for trying! |
No problem, we're ready when they'll eventually decide to open them 😄 |
Hi! I was able to download the JPG files super quick! However, anything that's uploaded with SmugMug Source did not pull the raw down with the JPG as well. I don't see anything in the documentation mentioning Source, so I'm not sure if this is supported. I've attached the [store] portion of my config below.
[store]
destination = "/Users/***/Documents/smugmug-full-backup"
write_csv = true
concurrent_albums = 5
concurrent_downloads = 10
The text was updated successfully, but these errors were encountered: