x43x61x69 / homebrew-nxcapsrv

A macOS tool for images convertion to Nintendo Switch readable photos.
2 stars 1 forks source link

Custom title ID breaks image #1

Open AnalogMan151 opened 6 years ago

AnalogMan151 commented 6 years ago

Generating images with the default title ID works fine and shows up in the Other category of the Album, but when using the --titleId option to specify a title ID (in this case, Zelda BoTW (F1C11A22FAEE3B82F21B330E1B786A39) the images now show as a grey thumbnail with question mark in them.

x43x61x69 commented 6 years ago

Can you provide an orignial picture file and a generated file based on that? I'll try look into it when I got some time to spare.

AnalogMan151 commented 6 years ago

Sure thing. Here is a ZIP with the original image, a converted image with the default Title ID which works, and also a converted image with Title ID F1C11A22FAEE3B82F21B330E1B786A39 which does not work. Compressed file.zip

AnalogMan151 commented 5 years ago

Any update on this issue? If you need some insight on how title IDs are calculated you can see this project here: https://github.com/cheuble/NSScreenshotMaker/

EDIT: Looking into this myself, I see that the custom title ID isn't written to the EXIF (bytes 138h-147h) and is still using the Home menu's title ID. If I manually change it to the Title ID I specified when creating the file this allows the thumbnail to show properly on the Switch but when opening the image it still fails to display the actual image.

Are you calculating the HMAC digest using the custom title ID but forgetting to write the custom title ID to the file?

Also, I know the there seems to be a file size limit, the other script needed to output at 80% quality in order to get files under this limit.