Dark thumbnails?

69 views
Skip to first unread message

Brandon Weigel

unread,
Feb 5, 2018, 9:50:07 AM2/5/18
to islandora
Hello all..

I've experienced a strange phenomenon in one of my Large Image collections, where certain images' thumbnails are extremely dark, so as to be nigh unusable.


If you look at the images themselves (both JP2 derivative and the original TIFF), the contrast is fine; only the Thumbnail is darkened.

The contributors of these images alerted me to the problem, and noted that when she downloaded the TIFF and resized it to make her own thumbnail, it looked a lot better than the Islandora-generated one.

Any ideas what's causing this, and how it might be remedied?

Brandon Weigel

unread,
Feb 5, 2018, 9:54:27 AM2/5/18
to islandora
A little bit of research brings this up: https://www.bennadel.com/blog/2825-fixing-grayscale-png-thumbnail-images-that-come-out-too-dark-in-imagemagick-6-7-7.htm

Is ImageMagick doing as this blogger surmises, and generating a PNG-8 that can't express all the tones appropriately?

Has anyone else run into this, and perhaps fixed it? What version of ImageMagick are we running?

Daniel Lamb

unread,
Feb 5, 2018, 10:21:26 AM2/5/18
to isla...@googlegroups.com

Brandon,

We've had issues before with imagemagick spitting out black thumbnails for pdfs, and the solution was to tweak the command: https://groups.google.com/forum/#!topic/islandora/ztY0Iv5-0AU.  So it's certainly within the realm of possibility.

To find out what version you are using, issue "convert --version" from a command prompt.  From the sounds of the blog post, newer versions fix it.  So it may be as simple as updating imagemagick.  To my knowledge, the newest imagemagick _should_ be ok.  I know people run the latest package from Ubuntu 16.04 without issue, which should be newer than that blog post at least.

--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to the Google Groups "islandora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+...@googlegroups.com.
Visit this group at https://groups.google.com/group/islandora.
To view this discussion on the web visit https://groups.google.com/d/msgid/islandora/05480672-098c-4bc2-9d97-ca4ed3088187%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
~Danny Lamb
Tech Lead
Islandora Foundation
http://islandora.ca

Peter MacDonald

unread,
Feb 5, 2018, 10:43:25 AM2/5/18
to isla...@googlegroups.com
Brandon:

I noticed that in your example object
​the preview (navigation) window in the top right corner of the image is also black -- even though the navigation in it works.

We have the same problem with some of our large black and white images, e.g.
but not all of our black and white images -- even within the same collection, e.g.
With color images, I've never seen this problem.

I'm just saying (confirming?) that your problem may have something to do with how imagemagick handles just black and white images.

I'm sorry I don't have a solution yet.

Peter​

Peter MacDonald
Library Information Systems Specialist
Hamilton College Library
315 859-4493
Skype: pmacdona-hamilton

On Mon, Feb 5, 2018 at 10:21 AM, Daniel Lamb <dl...@islandora.ca> wrote:

Brandon,

We've had issues before with imagemagick spitting out black thumbnails for pdfs, and the solution was to tweak the command: https://groups.google.com/forum/#!topic/islandora/ztY0Iv5-0AU.  So it's certainly within the realm of possibility.

To find out what version you are using, issue "convert --version" from a command prompt.  From the sounds of the blog post, newer versions fix it.  So it may be as simple as updating imagemagick.  To my knowledge, the newest imagemagick _should_ be ok.  I know people run the latest package from Ubuntu 16.04 without issue, which should be newer than that blog post at least.

On 2018-02-05 10:54 AM, Brandon Weigel wrote:
A little bit of research brings this up: https://www.bennadel.com/blog/2825-fixing-grayscale-png-thumbnail-images-that-come-out-too-dark-in-imagemagick-6-7-7.htm

Is ImageMagick doing as this blogger surmises, and generating a PNG-8 that can't express all the tones appropriately?

Has anyone else run into this, and perhaps fixed it? What version of ImageMagick are we running?

On Monday, 5 February 2018 09:50:07 UTC-5, Brandon Weigel wrote:
Hello all..

I've experienced a strange phenomenon in one of my Large Image collections, where certain images' thumbnails are extremely dark, so as to be nigh unusable.


If you look at the images themselves (both JP2 derivative and the original TIFF), the contrast is fine; only the Thumbnail is darkened.

The contributors of these images alerted me to the problem, and noted that when she downloaded the TIFF and resized it to make her own thumbnail, it looked a lot better than the Islandora-generated one.

Any ideas what's causing this, and how it might be remedied?
--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to the Google Groups "islandora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+unsubscribe@googlegroups.com.
--
~Danny Lamb
Tech Lead
Islandora Foundation
http://islandora.ca

--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to the Google Groups "islandora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+unsubscribe@googlegroups.com.

dric...@utk.edu

unread,
Feb 5, 2018, 12:50:31 PM2/5/18
to islandora
Is the original image CMYK or RBG? Maybe adding "-colorspace RGB -set colorspace sRGB -colorspace CMYK -set colorspace CMYK " to imagemagick will help avoid this mismatch in the future. 
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+...@googlegroups.com.
--
~Danny Lamb
Tech Lead
Islandora Foundation
http://islandora.ca

--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to the Google Groups "islandora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+...@googlegroups.com.

Brandon Weigel

unread,
Feb 5, 2018, 1:54:32 PM2/5/18
to islandora
Adding those bits created a straight black thumbnail, so that didn't work. :)  

Opening the TIFFs in Photoshop, as far as I can tell, they're RGB 8-bit... File info says photoshop:colormode:3.

Not having much luck so far!

dp...@metro.org

unread,
Feb 5, 2018, 2:55:44 PM2/5/18
to islandora
Hi Brandon,

Did a convert to your TIFF source image and I got some pretty decent TN after removing the -colorspace RGB recently merged. See

Same with -colorspace RGB 


Since "identify" applied on the image shows that TN is already in RGB space, maybe we could avoid using colorspace at all if we can identify those that are CMNYK and need this (i named your file brandon.tiff)
identify brandon.tiff  

brandon.tiff TIFF 3928x6378 3928x6378+0+0 8-bit sRGB 23.9504MiB 0.000u 0:00.009



This is my imagemagick

identify --version

Version: ImageMagick 7.0.7-3 Q16 x86_64 2017-09-22 http://www.imagemagick.org

Copyright: © 1999-2017 ImageMagick Studio LLC

License: http://www.imagemagick.org/script/license.php

Features: Cipher DPC HDRI Modules 


Delegates (built-in): bzlib freetype jng jp2 jpeg lcms ltdl lzma png tiff xml zlib


Best

Diego Pino

Daniel Lamb

unread,
Feb 5, 2018, 2:59:16 PM2/5/18
to isla...@googlegroups.com

dp...@metro.org

unread,
Feb 5, 2018, 3:00:51 PM2/5/18
to islandora
Hi, me again

Changing -colorspace RGB to -colorspace sRGB leads to better results (see below). Committers, any objections on doing that change globally?


best

Diego

Brandon Weigel

unread,
Feb 5, 2018, 3:24:54 PM2/5/18
to islandora
Assuming sRGB doesn't hurt the thumbnails generated for other types of images, I'd be happy to see it changed globally.

dp...@metro.org

unread,
Feb 5, 2018, 3:57:36 PM2/5/18
to islandora
Brandon, can you ping Jon Green and ask him? If sRGB does not hurt his needs, I can make this pull tonight.

Cheers

Brandon Weigel

unread,
Feb 5, 2018, 4:21:56 PM2/5/18
to islandora
Not sure how to ping him; he doesn't show up in Jira tagging. 

dp...@metro.org

unread,
Feb 5, 2018, 4:28:29 PM2/5/18
to islandora
Ok, trying on IRC now and discussing, seems like there is green light, jon++. http://irclogs.islandora.ca/2018-02-05.html

dp...@metro.org

unread,
Feb 5, 2018, 4:30:05 PM2/5/18
to islandora
Brandon, could you make me the honors to open a JIRA ticket and tag me there?
Thanks

Brandon Weigel

unread,
Feb 5, 2018, 4:37:39 PM2/5/18
to islandora
Done! Thank ye kindly.

dp...@metro.org

unread,
Feb 6, 2018, 3:12:01 PM2/6/18
to islandora
Cool. Working on a full fix here that involves an identify call, so stay tuned. Thanks for opening the JIRA ticket

D
Reply all
Reply to author
Forward
0 new messages