DNG thumbnail generation

240 views
Skip to first unread message

Rasmus Bjerén

unread,
Dec 15, 2015, 9:41:38 AM12/15/15
to ResourceSpace
Hey,

Just installed ResourceSpace with the intention to use it for my photo archive consisting of mostly DNG (RAW) photos. Problem is, my setup doesn't seem to allow creation of thumbnails for DNG files and I don't know whats wrong. I've made sure ImageMagick, ufraw etc is installed, paths to them are set, etc. as should be. I can also copy the convert command from ResourceSpace debug log and execute with success (even running as daemon, the apache user)... But, when the server attempts to do the same - it just takes a long long time, no files (at all) are generated alongside the DNG and the photo is just getting the generic DNG icon in resourcespace. However, I can see in my /tmp folder that there are temp files of the photos with .ufraw extension and also PNG previews. Still no trace of JPEG thumbs however, and certainly not in the ResourceSpace filestore...

I figured it might be the PHP / Apache max_execution_time/timeout but they are now increased to 3600 seconds and it still doesn't work. The upload indicates it's finished after a few minutes, but the thumb is still unavailable...

Any ideas, please?? Tried to seek the web and this forum, without success...

Regards,

Rasmus

Rasmus Bjerén

unread,
Dec 18, 2015, 7:58:36 AM12/18/15
to ResourceSpace
Sorry, but... Bump?! Noone having a clue? All tips are welcome!

Allison M Stec

unread,
Dec 18, 2015, 8:07:39 AM12/18/15
to resour...@googlegroups.com
Does the debug log show any errors related to preview generation?

Can you include your installation check?
--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.org
---
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resourcespac...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
--
ResourceSpace Developer
Reseller of Colorhythm's Prismpoint Portal DAM

Rasmus Bjerén

unread,
Dec 18, 2015, 8:10:22 AM12/18/15
to ResourceSpace
No errors at all in the debug log, sorry.... :(
Attaching image of installation check!

Thanks for taking you time :)

// Rasmus

Allison M Stec

unread,
Dec 18, 2015, 8:19:16 AM12/18/15
to resour...@googlegroups.com
Do you have RS set to try and extract previews from the dng? ( $dng_thumb_extract=true;)

Have you looked at your running processes to see if ImageMagick is finishing the convert task?

Rasmus Bjerén

unread,
Dec 18, 2015, 8:26:48 AM12/18/15
to ResourceSpace
The convert task seems to finish, yes.
I tried to enable the $dng_extract_thumb option before and yes, then it works. However, most of my thumbs are too low resolution so it's no good. And also, I want to convert from original into more sizes...

Regards,

Rasmus

Allison M Stec

unread,
Dec 18, 2015, 8:41:43 AM12/18/15
to resour...@googlegroups.com
Is it possible to provide a sample dng?

Rasmus Bjerén

unread,
Dec 18, 2015, 2:34:06 PM12/18/15
to ResourceSpace
Absolutely, the file was too large to attach but download it here: http://www.screendream.se/test/_RAS2626.dng
By the way, the installation is based on the bitnami VM with resourcespace 7.4-1 and ubuntu 14.04. After that I've installed ufraw and other plugins on top and specified adequate directories in config.php.

Regards,

Rasmus

Robert Damrau

unread,
Dec 19, 2015, 11:52:23 AM12/19/15
to ResourceSpace
Hi, i tested with your sample file and got no preview first. Debug log was like:

08:35:24 Contemplating thm (sw=, tw=150, sh=, th=150, extension=dng)
2015-12-19 08:35:24 Generating preview size thm to /www/rmdb.local.dev/include/../filestore/2/0/0_646d108ee92e049/200thm_7a059dbeea4795d.jpg
2015-12-19 08:35:24 CLI command: '/opt/local/bin/convert' '/www/rmdb.local.dev/include/../filestore/2/0/0_646d108ee92e049/200_53bee317bd22c78.dng'[0] +matte -flatten -quality 90  +matte -strip -colorspace sRGB  -resize 150x150">" '/www/rmdb.local.dev/include/../filestore/2/0/0_646d108ee92e049/200thm_7a059dbeea4795d.jpg'
2015-12-19 08:35:24 CLI output: 
2015-12-19 08:35:24 CLI errors: convert: delegate failed `"ufraw-batch" --silent --create-id=also --out-type=png --out-depth=16 "--output=%u.png" "%i"' @ error/delegate.c/InvokeDelegate/1332.
convert: unable to open image `/var/tmp/magick-52792GhuEDw3bCrT4.ppm': No such file or directory @ error/blob.c/OpenBlob/2701.
convert: no images defined `/www/rmdb.local.dev/include/../filestore/2/0/0_646d108ee92e049/200thm_7a059dbeea4795d.jpg' @ error/convert.c/ConvertImageCommand/3230.

I installed ufraw after that and uninstalled + re-installed imagemagick. Now it works with your file:

2015-12-19 16:50:31 CLI command: '/opt/local/bin/convert' '/www/rmdb.local.dev/include/../filestore/2/0/0_646d108ee92e049/200scr_3b438bda0fe7647.jpg'[0] +matte -flatten -quality 90  +matte -strip -colorspace sRGB  -resize 150x150">" '/www/rmdb.local.dev/include/../filestore/2/0/0_646d108ee92e049/200thm_7a059dbeea4795d.jpg'
2015-12-19 16:50:32 CLI output: 
2015-12-19 16:50:32 CLI errors: 

Rasmus Bjerén

unread,
Dec 19, 2015, 12:19:09 PM12/19/15
to ResourceSpace
Damn, that's not what happens to me. No errors the first time (and converted PNGs existing in /tmp), since I installed ufraw before even trying... However, tried to uninstall+install imagemagick for the sake of testing, but no difference.The images seem to be (at least partly) converted, however, that doesn't seem to help resourcespace...

Robert Damrau

unread,
Dec 19, 2015, 12:32:03 PM12/19/15
to ResourceSpace
Sorry i cant provide much help, this seems quite strange. You say png's are created but no jpg's means imagemagick somehow stops on half way without error message... but comandline works ... maybe hitting some kind of server/php memory/execution time limit? Or access rights problem? Very strange, i hope you figure it out!

Regards
Reply all
Reply to author
Forward
0 new messages