Bug 3850 - Some cover art is not resized for gallery view thumbnails
: Some cover art is not resized for gallery view thumbnails
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Web Interface
: 6.5b1
: PC Windows XP
: P2 normal (vote)
: ---
Assigned To: Chris Owens
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-07-31 12:37 UTC by windowshade
Modified: 2008-09-15 14:39 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments
Screenshot (288.96 KB, image/png)
2006-07-31 12:38 UTC, windowshade
Details
problem folder.jpg (50.11 KB, image/jpeg)
2006-07-31 18:01 UTC, windowshade
Details

Note You need to log in before you can comment on or make changes to this bug.
Description windowshade 2006-07-31 12:37:13 UTC
Some cover art is not resized for the gallery views. I can't detect a predictable pattern, but all but one of my problem files have a width or height of 500px.

SlimServer Version: 6.5b1 - 8741 - Windows XP - EN - cp1252
Comment 1 windowshade 2006-07-31 12:38:38 UTC
Created attachment 1387 [details]
Screenshot

Screenshot of Firefox; IE has same problem
Comment 2 KDF 2006-07-31 13:07:57 UTC
if they are BMP format, this is not supported.  see bug 3781
Comment 3 KDF 2006-07-31 13:11:54 UTC
also note that bug 371 already notes several debugging tests that you could look into for finding more specific information on this problem.
Comment 4 windowshade 2006-07-31 13:21:19 UTC
(In reply to comment #2)
> if they are BMP format, this is not supported.  see bug 3781
> 

all JPG.
Comment 5 windowshade 2006-07-31 13:23:04 UTC
(In reply to comment #3)
> also note that bug 371 already notes several debugging tests that you could
> look into for finding more specific information on this problem.
> 

Will look into bug 3781 & report. Thanks for your help.
Comment 6 windowshade 2006-07-31 18:01:47 UTC
Created attachment 1390 [details]
problem folder.jpg

IMG properties in Album Gallery: http://localhost:9000/music/4/thumb_100x100_f_000000.jpg (displayed as 500x500 as in screenshot)
Comment 7 windowshade 2006-07-31 18:05:18 UTC
(In reply to comment #3)
> also note that bug 371 already notes several debugging tests that you could
> look into for finding more specific information on this problem.
> 

--d_graphics --d_artwork log: see 2006-07-31 18:55:52.1348 GD wouldn't create image object

2006-07-31 18:54:47.7618  fontfile entry: full.2.font.bmp
2006-07-31 18:54:47.7626  fontfile entry: high.2.font.bmp
2006-07-31 18:54:47.7631  fontfile entry: huge.2.font.bmp
2006-07-31 18:54:47.7635  fontfile entry: large.2.font.bmp
2006-07-31 18:54:47.7640  fontfile entry: light.1.font.bmp
2006-07-31 18:54:47.7644  fontfile entry: light.2.font.bmp
2006-07-31 18:54:47.7649  fontfile entry: logo.font.bmp
2006-07-31 18:54:47.7654  fontfile entry: medium.1.font.bmp
2006-07-31 18:54:47.7659  fontfile entry: medium.2.font.bmp
2006-07-31 18:54:47.7664  fontfile entry: small.1.font.bmp
2006-07-31 18:54:47.7669  fontfile entry: small.2.font.bmp
2006-07-31 18:54:47.7673  fontfile entry: standard.1.font.bmp
2006-07-31 18:54:47.7678  fontfile entry: standard.2.font.bmp
2006-07-31 18:54:47.7683  fontfile entry: threeline.1.font.bmp
2006-07-31 18:54:47.7688  fontfile entry: threeline.2.font.bmp
2006-07-31 18:54:47.7692  fontfile entry: threeline.3.font.bmp
2006-07-31 18:54:47.7733 Retrieving font data from font cache: C:\Program Files\SlimServer\server\Cache\fonts.bin
2006-07-31 18:54:47.7816 Trying to load GD Library for TTF support: ok
2006-07-31 18:54:47.7827 Using TTF for Unicode on Player Display. Font: [C:\Program Files\SlimServer\server\Graphics\CODE2000.TTF]
2006-07-31 18:55:41.6234 Found 4 files in F:\Audio Archive\John Coltrane\[1961] My Favorite Things
2006-07-31 18:55:52.0566 Cover Art asking for: thumb at size 100x100
2006-07-31 18:55:52.0573 Retrieving artwork (thumb) for: file:///F:/Audio%20Archive/John%20Coltrane/[1961]%20My%20Favorite%20Things/01%20-%20My%20Favorite%20Things.mp3
2006-07-31 18:55:52.0578 readCoverArtTags: Looking for a cover art image in the tags of: [F:\Audio Archive\John Coltrane\[1961] My Favorite Things\01 - My Favorite Things.mp3]
2006-07-31 18:55:52.1164 Looking for image files in F:\Audio Archive\John Coltrane\[1961] My Favorite Things
2006-07-31 18:55:52.1280 Found thumb file: F:\Audio Archive\John Coltrane\[1961] My Favorite Things\folder.jpg
2006-07-31 18:55:52.1341   got cover art image application/octet-stream of 51316 bytes
2006-07-31 18:55:52.1348 GD wouldn't create image object
2006-07-31 18:56:32.8146 Retrieving artwork (cover) for: file:///F:/Audio%20Archive/John%20Coltrane/[1961]%20My%20Favorite%20Things/01%20-%20My%20Favorite%20Things.mp3
2006-07-31 18:56:32.8158 coverArt: Found cached cover file: F:\Audio Archive\John Coltrane\[1961] My Favorite Things\folder.jpg
2006-07-31 18:56:33.0087 Cover Art asking for: cover
2006-07-31 18:56:33.0095 Use of uninitialized value in concatenation (.) or string at /PerlApp/Slim/Web/Graphics.pm line 82.
2006-07-31 18:56:33.0097 Use of uninitialized value in concatenation (.) or string at /PerlApp/Slim/Web/Graphics.pm line 82.
2006-07-31 18:56:33.0098   artwork cache key: F:\Audio Archive\John Coltrane\[1961] My Favorite Things\folder.jpg-squash---2147483647
2006-07-31 18:56:33.0107 Retrieving artwork (cover) for: file:///F:/Audio%20Archive/John%20Coltrane/[1961]%20My%20Favorite%20Things/01%20-%20My%20Favorite%20Things.mp3
2006-07-31 18:56:33.0119 coverArt: Found cached cover file: F:\Audio Archive\John Coltrane\[1961] My Favorite Things\folder.jpg
2006-07-31 18:56:33.0127   got cover art image application/octet-stream of 51316 bytes
2006-07-31 18:56:33.0128 no need to process image
2006-07-31 18:56:33.0129   caching result key: F:\Audio Archive\John Coltrane\[1961] My Favorite Things\folder.jpg-squash---2147483647
Comment 8 KDF 2006-07-31 18:27:14 UTC
please attach this image to the bug report:
F:\Audio Archive\John Coltrane\[1961] My Favorite Things\folder.jpg

the server appears unable to find the jpeg header, thus is not considering the file as being supported.
Comment 9 windowshade 2006-07-31 20:41:59 UTC
(In reply to comment #8)
> please attach this image to the bug report:
> F:\Audio Archive\John Coltrane\[1961] My Favorite Things\folder.jpg
> 
> the server appears unable to find the jpeg header, thus is not considering the
> file as being supported.
> 

It's already above: "problem folder.jpg" (https://bugs-archive.lyrion.org/attachment.cgi?id=1390). This file is a recent download from Amazon.
Comment 10 KDF 2006-07-31 23:58:51 UTC
I know it displays, but technically it's not a valid jpg file.  it's missing the JFIF bytes in the header for some reason.
The GD library that handles resizing only supports JPG and PNG formats.

I guess we'll need more control over the bailing of corrupt files.
Comment 11 KDF 2006-08-01 09:32:55 UTC
Dan, are you able to work with the given jpg file?
If it's not something we can detect as image/jpeg content type, what would be the right thing here?
I'm not sure how we can get anything up to the templates given how this problem shows up (inline of the http processing)
Comment 12 Dan Sully 2006-08-01 11:59:10 UTC
Fixed in change 3850

You'll need to wipe your Cache folder, and your browser cache.