Cover Art is pink

Need help? Post your questions here.

Moderator: moderators

Cover Art is pink

Postby archrival » Wed May 26, 2010 6:05 am

For some album art, the resized version is pink. When zooming, the album art looks fine. Any idea why this would be occurring?
archrival
 
Posts: 173
Joined: Wed May 26, 2010 6:02 am

Postby thomasbruce » Fri May 28, 2010 5:05 pm

i have the same problem with some of my cover art. some are grey and other ones are black and white.....
thomasbruce
 
Posts: 64
Joined: Fri Apr 09, 2010 3:09 pm

Postby archrival » Sun May 30, 2010 9:59 am

I did some research into this and it appears the cover art that is showing up strange have bad JPEG headers. Using a tool like ExifTool http://www.sno.phy.queensu.ca/~phil/exiftool/ to add/edit EXIF headers actually rewrites the JPEG header in a way that Java ImageIO reads it properly (it does so losslessly). I took a look at the code and it appears to be a problem with the way Java reads the JPEG and not Subsonic. I tried different ways of reading the JPEG and they all did the same thing. Although still feel free to try to fix it. :D
archrival
 
Posts: 173
Joined: Wed May 26, 2010 6:02 am

Postby Toddler » Thu Jun 23, 2011 7:03 am

Darn it, I have this problem as well. Nearly my entire collection is black and white, some are pink, and some are fine. My album art is embedded. It shows up fine in other apps though such as WMP or on my Android. No fix for this I guess?
Toddler
 
Posts: 3
Joined: Thu Jun 23, 2011 6:59 am

Postby supra92 » Thu Jun 23, 2011 4:08 pm

I've found that cover art jpegs being "bad"/"pink" happen every so often, maybe 1 in 30 or so. I watch for that when I'm assigning cover art, and if one shows up as pink or screwed-up when i view the album in SS, I just hit the Change link and choose a different image from the Google Images result. 99 times out of 100 the next image I pick is fine. A minor nuisance, to be sure, especially since images either work or they don't --- if it shows up correctly when you look at it the first time, it'll be fine ad infinitum.

Supra92
User avatar
supra92
 
Posts: 137
Joined: Sun Nov 19, 2006 12:17 am
Location: Central Texas

Postby Toddler » Fri Jun 24, 2011 2:48 am

Yeah, but I have 254,232 mp3 files with artwork already embedded which work fine in every other application. That's a lot of work to clean up the entire collection when the real fix must be somewhere in the code.
Toddler
 
Posts: 3
Joined: Thu Jun 23, 2011 6:59 am

Postby tenzip » Sat Jun 25, 2011 7:16 am

I've noticed this also, actually just got a screenshot, and was going to post a thread, but searched first, and found this.

It actually looks like a color photo negative version for me, the thumb, that is. The zoom looks fine.

As far as the problem being in the code, I agree, but it also depends on the way you want to look at it. The code in the picture header is bad, and should not be. Most viewers "overlook" the problem, and let you see the art anyway, without any warning or notification that something is wrong. This is not the way it should work.

Another example of the same kind of thing is Internet Explorer. It will let you view a web page that is, code-wise, quite broken, and it looks and works fine, because IE will "interpret" to try to show what the web "designer" wanted you to see. Other browsers, Firefox, for one, will either warn of errors, or not render the broken parts of the code. (This being one of the reasons I won't use IE.)

Running/rendering broken code, without any indication that it is broken, is a good way to either screw things up, or get a virus/malware. Sloppy coding is encouraged by IE, and, evidently, by most album art viewers.

So, I guess I'm thankful to Subsonic for pointing out these errors. My library is not so huge that I can't fix the ones that are bad, as supra92 said, it's a fairly small proportion of the total for me.
User avatar
tenzip
 
Posts: 16
Joined: Wed Jun 15, 2011 4:45 am
Location: Lincoln, NE, USA

Postby Toddler » Tue Jul 12, 2011 5:25 am

tenzip wrote:It actually looks like a color photo negative version for me, the thumb, that is. The zoom looks fine.

As far as the problem being in the code, I agree, but it also depends on the way you want to look at it. The code in the picture header is bad, and should not be.

The thing is, the thumbs are being generated by Subsonic in my case. They are all embedded in the mp3 files in my collection, with no .jpg files present at all. It is only when Subsonic indexes my collection and generates all the thumbs it uses that things get screwed up. So if the code in the thumbnail picture header is bad, and given that Subsonic is generating those thumbnails from the embedded .jpg files, it is isolated to Subsonic.

Strangely, after deleting Subsonic's thumbnails and manually reindexing my collection without making any changes, some of the albums which were displaying incorrectly are now fine, and others are not. Curiouser and curiouser.
Toddler
 
Posts: 3
Joined: Thu Jun 23, 2011 6:59 am

Re: Cover Art is pink

Postby starnostar » Fri Nov 25, 2011 9:14 am

For anyone having this issues (I am), this can fixed....

For any album art you download from now and into the future, just install jhead (should be in your repo) and run

$ jhead -purejpg img.jpg

Where "img.jpg" is your yet-to-be-embedded album art
This strips the jpg header off entirely, and makes whatever image you choose, no matter where you get it, work every time...be warned though, if you care about ANY metadata in the image, this will strip it off (also handy for stripping metadata for craigslist photos, etc...)

And for anyone using Thunar, and want a custom-action for this...
# Name - Whatever you want...
# Command - jhead -purejpg %F
# File pattern - *
# Appears if selections contains - "image files"
Now right click image, choose action, image is processed....if you picky like me, you can string in an imagemagik command to make the image perfectly square first...right click for perfect album art :)

-purejpg
Delete all JPEG sections that aren't necessary for rendering the image. Strips any metadata that various applications may have left in the image. A combination of the -de -dc and -du options.
starnostar
 
Posts: 6
Joined: Fri Jan 21, 2011 8:33 am

Re: Cover Art is pink

Postby BKKKPewsey » Sat Nov 26, 2011 2:21 am

Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Cover Art is pink

Postby Exrace » Sat Nov 26, 2011 11:04 am

Nice fix.
Exrace
 
Posts: 218
Joined: Thu Nov 11, 2010 5:02 am

Re: Cover Art is pink

Postby starnostar » Sat Nov 26, 2011 3:40 pm

My previous fix STILL did not work for a select few images....

-purejpg still leaves a few other fields, but to fix the images that -purejpg didnt fix, this worked

jhead -dc -de -di - dx - du img.jpg;jhead -mkexif img.jpg

or

jhead -dc -de -di - dx - du img.jpg
jhead -mkexif img.jpg

instead of just "deleteing exif data not necessary for rendering the image", this just deleted the whole %$*# thing and re-writes it (the exif data that is...all of it).
starnostar
 
Posts: 6
Joined: Fri Jan 21, 2011 8:33 am

Re: Cover Art is pink

Postby configX » Mon Oct 07, 2013 11:26 pm

Add me to the list of people experiencing this.
User avatar
configX
 
Posts: 2
Joined: Tue Oct 01, 2013 6:27 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 22 guests