ImageMagick not creating full size previews.

79 views
Skip to first unread message

Jason Chen

unread,
Aug 24, 2016, 12:03:26 PM8/24/16
to ResourceSpace

So this happened to me on my DSM, I installed resourcespace on a DSM (maria DB/PHP)

If I upload a picture bigger then 15MB, the thumbnail/preview only done part of the picture.  Like attached, anyone has this problem?  Looks like there are some limit for this but can't figure out what is it.

Thanks in advance.

Allison Stec

unread,
Aug 24, 2016, 12:09:27 PM8/24/16
to resour...@googlegroups.com, Jason Chen
Consider testing the commands being used to generate the previews from outside RS. You can find these in the resource log if your version of RS is current.

When you locate the commands, try running the command manually from the cli with the verbose flag. This should give you some insight as to any IM specific issues.
--
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.

Jason Chen

unread,
Aug 24, 2016, 12:26:58 PM8/24/16
to ResourceSpace, fengl...@gmail.com
Thank you for the reply Allison,

I am not really a linux guy, I am a Microsoft admin, just install this device for test purpose.   

Since this is installed on a DSM (snology nas),  I used "ipkg install imagemagick" to install imagemagick at beginning.
So I assume I can copy a image to a folder and ssh to DSM and run the command to convert the image?

Do you have a example which command I should use for this?    (Sorry to bother you for this)

Thanks again.

Jason Chen

unread,
Aug 24, 2016, 3:04:49 PM8/24/16
to ResourceSpace, fengl...@gmail.com
I ran the same command  (from log) for 2 test images.  25.jpg and test3.jpg

'/opt/bin/convert' '/volume1/web/resourcespace/include/../filestore/tmp/test3.jpg'[0] +matte -flatten -quality 90 +matte -strip -colorspace sRGB -resize 700x450">"  '/volume1/web/resourcespace/include/../filestore/tmp/27.jpg 

Just got segmentation fault (core dumped)


I ran the same command with 25.jpg.

'/opt/bin/convert' '/volume1/web/resourcespace/include/../filestore/tmp/25.jpg'[0] +matte -flatten -quality 90 +matte -strip -colorspace sRGB -resize 700x450">"  '/volume1/web/resourcespace/include/../filestore/tmp/26.jpg 
and it just finished successfully.  Confusing.

Inline image 2

Inline image 1





Jason Chen

unread,
Aug 24, 2016, 5:10:44 PM8/24/16
to ResourceSpace, fengl...@gmail.com
OK I finally figured out the problem.  If anyone installed RS on a synology DSM, you could face this issue.

The imageMagick installed from IPKG install imageMagick  in DSM is version 6.6.9 and it's out of date from 2012.

DSM itself has a 6.9 version (not full package) installed and I copied /usr/syno/bin/convert-thumb  to replace /opt/bin/convert

Then looks all images upload works now.
Reply all
Reply to author
Forward
0 new messages