|
Batch Metadata Tools This forums is for discussing the user-created Batch Metadata Tools for SageTV. |
|
Thread Tools | Search this Thread | Display Modes |
#21
|
|||
|
|||
Bizarre! All of the images are in the RGB colorspace. They aren't using CMYK/HSL which is what I would expect to show a radical color shift like that. If you have image magick installed you can show the colorspace of the image via 'identify -verbose image.jpg' and it will spit out the colorspace along with a bunch of other info. Photoshop can determine the colorspace as well and Gimp probably can too.
May just have to manually fix these as they show up |
#22
|
|||
|
|||
or somehow detect them and either just delete them and redownload a different one... or detect, save with some external program to fix the problem...
__________________
Server 2003 r2 32bit, SageTV9 (finally!) 2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast) 2x HD300, 1x SageClient (Win10 Test/Development) Check out TVExplorer |
#23
|
||||
|
||||
Quote:
Quote:
In my testing... I'd do.. Code:
BufferedImage i = ImageIO.read(file); ImageIO.write(i, "jpg", newfile);
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#24
|
|||
|
|||
Quote:
__________________
Server 2003 r2 32bit, SageTV9 (finally!) 2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast) 2x HD300, 1x SageClient (Win10 Test/Development) Check out TVExplorer |
#25
|
||||
|
||||
Yeah, I've looked at the image magic stuff before. I personally have never run into this issue, but I know several other have. What I may do, it add an image download hook to the fanart download process, thta can hand the image off another process once it's downloaded. That way, some people could have it run through an image processor that simply loads and saves the image using some other tool.
I'll take a look at image magic again as well.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#26
|
|||
|
|||
I used groovy as a way into the classes and it looks like the offending images are distorted when they are read in. I tried writing one out to a bmp and it was distorted. Unfortunately in the imageio class, there is no way to specify the reader type. It is chosen automagically so it looks like there is no way to forcefully say read this image, it's a jpeg, and it's in the RGB colorspace.
I tried digging into the bufferedimage class a little bit, but couldn't get find a straight answer on how to examine the colorspace of an image. There is a colorspace property, but it just goes to another class and doesn't look like it can be simply printed out to determine what colorspace the image is in. I haven't done much java programming (groovy scripting for SJQ is really about it) but this is reminiscent of dependency hell in linux 10 years ago. Oh you want to look at this property, that's another class. But that class is a sub-class of another sub-class of another sub-class By the time I've looked up the properties on the 5th subclass I've forgotten wtf I was originally looking for! Not a very elegant solution, but hooking into an external converter for jpegs may be the only option |
#27
|
|||
|
|||
just thinking about this again.... bmt 3.x never had this issue with scaling/transforming images... so did something change on your end (ie how bmt was fetching/caching/saving the images)? or do you think (more likely probably) that the problem has always been there but more people are now creating images for tvdb using a colorspace that java doesnt like?
__________________
Server 2003 r2 32bit, SageTV9 (finally!) 2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast) 2x HD300, 1x SageClient (Win10 Test/Development) Check out TVExplorer |
#28
|
||||
|
||||
Quote:
Since the issue is in the core java ImageIO apis... i've spoken with sagetv to see if they can expose their image apis so that I can use them, instead of the java apis. Once that happens, the phoenix apis will be modified to use the new load/save methods and it should solve this issue.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#29
|
|||
|
|||
Quote:
Quote:
__________________
Server 2003 r2 32bit, SageTV9 (finally!) 2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast) 2x HD300, 1x SageClient (Win10 Test/Development) Check out TVExplorer |
#30
|
|||
|
|||
Would there be any point in filing a bug report with Oracle about the imageIO library? It seems that it has problems with these images when nothing else I've found does. Heck even mspaint can read them fine!
|
#31
|
||||
|
||||
Quote:
Once we get to use the exposed sagetv apis, then it will be better all around. I'm sure the native apis for loading/scaling/saving are more efficient than the java based apis.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#32
|
|||
|
|||
was this ever resolved? I am starting to see this more and more.
__________________
Sage Server: i5-2500K 8 GB DDR, 6000gb HDD, 4xHD-PVR < 4xBell 6141, Win7 x64 Client 1: HD-200, Panasonic 42PX75 Client 2: HD-300, Samsung LCD Client 3: HD-300, Samsung PN50C550 Client 4: MS Surface Pro |
#33
|
||||
|
||||
Yeah, I'm pretty sure it has been resolved for many months now... I haven't seen a corrupt file in ages. Are you running the latest sagetv/bmt/phoenix?
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#34
|
|||
|
|||
yeah using the latest according to the plugins. It is a new install. My internet connection can be a little shaky, so that might be the cause.
__________________
Sage Server: i5-2500K 8 GB DDR, 6000gb HDD, 4xHD-PVR < 4xBell 6141, Win7 x64 Client 1: HD-200, Panasonic 42PX75 Client 2: HD-300, Samsung LCD Client 3: HD-300, Samsung PN50C550 Client 4: MS Surface Pro |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Poster view crashing - Help please | PhilH | Sage My Movies | 3 | 11-11-2010 11:53 AM |
Default poster when there is no fanart | Oats | SageMC Custom Interface | 0 | 10-21-2010 04:53 PM |
Poster not showing up as Thumb | technazz | SageMC Custom Interface | 0 | 09-24-2009 07:01 AM |
Poster art not showing | veger69 | SageMC Custom Interface | 5 | 07-20-2009 10:06 AM |