Skip to content

Commit

Permalink
Change c04aae6 from a week ago broke figuring out aspect ratio for th…
Browse files Browse the repository at this point in the history
…umbnails view, this fixes it
  • Loading branch information
Matthias-Wandel committed Mar 28, 2021
1 parent 942ef09 commit 5bb1db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browse/showdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ void MakeHtmlOutput(Dir_t * Dir)
int e = strlen(Name);
if (e < 5 || memcmp(Name+e-4,".jpg",4)) continue; // Not an image.
char HtmlPath[500];
sprintf(HtmlPath, "%s/%s", Dir->HtmlPath, Images.Entries[a].Name);
sprintf(HtmlPath, "pix/%s/%s", Dir->HtmlPath, Images.Entries[a].Name);
float AspectRatio = ReadExifHeader(HtmlPath, NULL, NULL);
ThumbnailHeight = (int)(320/AspectRatio);
break;
Expand Down

0 comments on commit 5bb1db5

Please sign in to comment.