Page 1 of 1

I need the identify for synology ds415

Posted: 2017-03-14T15:16:01-07:00
by moonj
Hello, I am new here.
So I followed http://www.resourcespace.com/knowledge- ... l_synology this installed resourcespace on the DS415play.
I used IPKG installed imageMagick which is way outdated the version is 6.6.9.

Synology has the tool convert/compare/composite installed on the device, but there is no identify for this version.
I am wondering if any of you know how could I only get the identify work on the synology? I tried download the new version but it didn't work.

Version: ImageMagick 6.9.6-7 Q8 i686 2017-02-13 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php


Thanks in advance

Re: I need the identify for synology ds415

Posted: 2017-03-14T15:23:15-07:00
by snibgo
With modern versions of IM, "convert" can do most things (or everything?) that "identify" can do.

That may not be true for v6.6.9 which is very very very old.

Re: I need the identify for synology ds415

Posted: 2017-03-14T17:37:10-07:00
by fmw42
try

Code: Select all

convert image info:
or

Code: Select all

convert image -verbose info:

Re: I need the identify for synology ds415

Posted: 2017-03-14T19:04:59-07:00
by moonj
Thanks guys, so my problem now is for some images (normally bigger than 15MB),
after upload the thumbnails are not full loaded, the image is just half or more than half and the other part is black.

I don't see error from the commands logs (from resourcespace), any of you saw this before? and any idea why this happens?

Re: I need the identify for synology ds415

Posted: 2017-03-14T19:12:13-07:00
by fmw42
You may be running out of space in your tmp directory. See MAGICK_TEMPORARY_PATH at http://www.imagemagick.org/script/resou ... nvironment, unless your IM version is too old. Version 6.6.9 is about 290 versions old. You may want to consider upgrading.

Do you get anything from

Code: Select all

convert -list resource

Re: I need the identify for synology ds415

Posted: 2017-03-15T06:53:22-07:00
by moonj
Thanks fmw42,

I found that the synology device it self has a newer version under its bin folder called convert-thumb, I just renamed it and replaced the one in the /opt/bin folder.
and this one looks newer, now less files will have the problems, but still some will.
Version: ImageMagick 6.9.6-7 Q8 i686 2017-02-13


I ran it and get this result, do you see any problems here?
convert -list resource

Resource limits:
Width: 429.5MP
Height: 429.5MP
Area: 1.4669GP
Memory: 699.5MiB
Map: 1.3662GiB
Disk: unlimited
File: 768
Thread: 4
Throttle: 0
Time: unlimited

Re: I need the identify for synology ds415

Posted: 2017-03-15T07:02:19-07:00
by moonj
Also, on the synology (ds415play) device I followed this to install resource space.
http://www.resourcespace.com/knowledge- ... l_synology

From the bootstrap script/optware IPKG list looks like outdated and the only version there is 6.6.9, is there another way I can update the Imagemagick on that thing?
Intel Atom CE5335 Dual Core 4 Yes Evansport DDR3 1 GB

Re: I need the identify for synology ds415

Posted: 2017-03-15T07:32:28-07:00
by moonj
Here is the info I get here

convert Grippers.jpg -verbose info:
Image: Grippers.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Mime type: image/jpeg
Class: DirectClass
Geometry: 9250x12250+0+0
Resolution: 500x500
Print size: 18.5x24.5
Units: PixelsPerInch
Type: TrueColor
Endianess: Undefined
Colorspace: sRGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Pixels: 113312500
Red:
min: 0 (0)
max: 255 (1)
mean: 109.449 (0.429214)
standard deviation: 87.4842 (0.343075)
kurtosis: -1.10335
skewness: 0.870384
entropy: 0.415121
Green:
min: 0 (0)
max: 255 (1)
mean: 118.576 (0.465002)
standard deviation: 70.7321 (0.277381)
kurtosis: -0.756392
skewness: 0.947107
entropy: 0.427225
Blue:
min: 0 (0)
max: 255 (1)
mean: 157.322 (0.61695)
standard deviation: 56.9434 (0.223307)
kurtosis: -0.0166419
skewness: -0.310103
entropy: 0.436855
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 128.449 (0.503722)
standard deviation: 72.799 (0.285486)
kurtosis: -0.970083
skewness: 0.495368
entropy: 0.4264
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Background color: white
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 9250x12250+0+0
Dispose: Undefined
Iterations: 0
Compression: JPEG
Quality: 99
Orientation: Undefined
Properties:
date:create: 2017-03-15T08:27:52-06:00
date:modify: 2017-03-13T12:28:38-06:00
jpeg:colorspace: 2
jpeg:sampling-factor: 1x1,1x1,1x1
signature: 4e6535755914274b49455e34688bf4af2c23de0ef61528f71c54e2852ac2701e
Profiles:
Profile-8bim: 28 bytes
Profile-icc: 3144 bytes
Artifacts:
filename: Grippers.jpg
verbose: true
Tainted: False
Filesize: 15.78MB
Number pixels: 113.3M
Pixels per second: 8.082MB
User time: 13.550u
Elapsed time: 0:15.019
Version: ImageMagick 6.9.6-7 Q8 i686 2017-02-13 http://www.imagemagick.org
convert: UnableToOpenConfigureFile `colors.xml' @ warning/configure.c/GetConfigureOptions/712.

Re: I need the identify for synology ds415

Posted: 2017-03-15T08:07:45-07:00
by snibgo
moonj wrote:Thanks guys, so my problem now is for some images (normally bigger than 15MB),
after upload the thumbnails are not full loaded, the image is just half or more than half and the other part is black.
File size, in bytes, is of no importance.
moonj wrote:Geometry: 9250x12250+0+0
The image is 9250*12250 pixels. You are using Q8, so each pixel needs 4 bytes of memory, so that is 453 MB of memory. That requirement is met, otherwise the info: wouldn't work.

What command gave the result "the image is just half or more than half and the other part is black"?

Re: I need the identify for synology ds415

Posted: 2017-03-15T08:34:43-07:00
by moonj
snibgo wrote: 2017-03-15T08:07:45-07:00
moonj wrote:Thanks guys, so my problem now is for some images (normally bigger than 15MB),
after upload the thumbnails are not full loaded, the image is just half or more than half and the other part is black.
File size, in bytes, is of no importance.
moonj wrote:Geometry: 9250x12250+0+0
The image is 9250*12250 pixels. You are using Q8, so each pixel needs 4 bytes of memory, so that is 453 MB of memory. That requirement is met, otherwise the info: wouldn't work.

What command gave the result "the image is just half or more than half and the other part is black"?
Thanks snibgo,

So here is a screen shot, you can see what exactly what I am saying here
I just increased the memory limit to 512M in the php file (from resource space) the device itselft only has 1GB RAM. I can try increase it more,
but the problem is the same picture sometimes can be uploaded fine with a good thumbnail, but most time it can't. I guess that could related with the memory?

https://drive.google.com/file/d/0Bxwypg ... lWQVE/view
Image



ResourceSpace version 7.8.8384
PHP version 5.6.28  (config: /usr/syno/etc/packages/WebStation/php56/php.ini) OK
MySQL version 5.5.53-MariaDB  (client-encoding: utf8) OK
GD version bundled (2.1.0 compatible) OK
PHP.INI value for 'memory_limit' 512M OK
PHP.INI value for 'post_max_size' 100M OK
PHP.INI value for 'upload_max_filesize' 100M OK
Write access to /volume1/web/resourcespace/include/../filestore OK
Write access to filestore/system/slideshow OK
Blocked browsing of 'filestore' directory OK
Large file support (64 bit platform) WARNING: Running 32 bit PHP. Files larger than 2GB will not be supported.
ImageMagick Version: ImageMagick 6.9.6-7 Q8 i686 2017-02-13 http://www.imagemagick.org OK





And here is all the command from the log

Create previews
create_previews(ref=780,thumbonly=,extension=jpg,previewonly=,previewbased=,alternative=-1,ingested=,checksum_required=1)
create_previews - generate checksum for 780
File source is /volume1/web/resourcespace/include/../filestore/7/8/0_3102a1c549a919b/780_3932a9cf063279a.jpg
create_previews_using_im(ref=780,thumbonly=,extension=jpg,previewonly=,previewbased=,alternative=-1,ingested=)
'/opt/bin//identify' -format %wx%h '/volume1/web/resourcespace/include/../filestore/7/8/0_3102a1c549a919b/780_3932a9cf063279a.jpg'[0]:
9250x12250
Contemplating hpr (sw=9250, tw=999999, sh=12250, th=999999, extension=jpg)
Contemplating lpr (sw=9250, tw=2000, sh=12250, th=2000, extension=jpg)
Generating preview size lpr to /volume1/web/resourcespace/include/../filestore/7/8/0_3102a1c549a919b/780lpr_18d99627054114b.jpg
'/opt/bin//convert' '/volume1/web/resourcespace/include/../filestore/7/8/0_3102a1c549a919b/780_3932a9cf063279a.jpg'[0] +matte -flatten -quality 90 +matte -strip -colorspace sRGB -resize 2000x2000">" '/volume1/web/resourcespace/include/../filestore/7/8/0_3102a1c549a919b/780lpr_18d99627054114b.jpg':

Contemplating scr (sw=9250, tw=1400, sh=12250, th=800, extension=jpg)
Generating preview size scr to /volume1/web/resourcespace/include/../filestore/7/8/0_3102a1c549a919b/780scr_840257e0c7c1615.jpg
'/opt/bin//convert' '/volume1/web/resourcespace/include/../filestore/7/8/0_3102a1c549a919b/780lpr_18d99627054114b.jpg'[0] +matte -flatten -quality 90 +matte -strip -colorspace sRGB -resize 1400x800">" '/volume1/web/resourcespace/include/../filestore/7/8/0_3102a1c549a919b/780scr_840257e0c7c1615.jpg':

Contemplating pre (sw=9250, tw=700, sh=12250, th=450, extension=jpg)
Generating preview size pre to /volume1/web/resourcespace/include/../filestore/7/8/0_3102a1c549a919b/780pre_235dc3754acf4e5.jpg
'/opt/bin//convert' '/volume1/web/resourcespace/include/../filestore/7/8/0_3102a1c549a919b/780scr_840257e0c7c1615.jpg'[0] +matte -flatten -quality 90 +matte -strip -colorspace sRGB -resize 700x450">" '/volume1/web/resourcespace/include/../filestore/7/8/0_3102a1c549a919b/780pre_235dc3754acf4e5.jpg':

Contemplating thm (sw=9250, tw=150, sh=12250, th=150, extension=jpg)
Generating preview size thm to /volume1/web/resourcespace/include/../filestore/7/8/0_3102a1c549a919b/780thm_fdbcdfec545135e.jpg
'/opt/bin//convert' '/volume1/web/resourcespace/include/../filestore/7/8/0_3102a1c549a919b/780scr_840257e0c7c1615.jpg'[0] +matte -flatten -quality 90 +matte -strip -colorspace sRGB -resize 150x150">" '/volume1/web/resourcespace/include/../filestore/7/8/0_3102a1c549a919b/780thm_fdbcdfec545135e.jpg':

Contemplating col (sw=9250, tw=75, sh=12250, th=75, extension=jpg)
Generating preview size col to /volume1/web/resourcespace/include/../filestore/7/8/0_3102a1c549a919b/780col_89ffb7285380175.jpg
'/opt/bin//convert' '/volume1/web/resourcespace/include/../filestore/7/8/0_3102a1c549a919b/780scr_840257e0c7c1615.jpg'[0] +matte -flatten -quality 90 +matte -strip -colorspace sRGB -resize 75x75">" '/volume1/web/resourcespace/include/../filestore/7/8/0_3102a1c549a919b/780col_89ffb7285380175.jpg':

Re: I need the identify for synology ds415

Posted: 2017-03-15T08:59:18-07:00
by snibgo
I know nothing about PHP.

Code: Select all

'/opt/bin//convert' '/volume1/web/resourcespace/include/../filestore/7/8/0_3102a1c549a919b/780_3932a9cf063279a.jpg'[0] +matte -flatten -quality 90 +matte -strip -colorspace sRGB -resize 2000x2000">" '/volume1/web/resourcespace/include/../filestore/7/8/0_3102a1c549a919b/780lpr_18d99627054114b.jpg'
So, this reads the image, needing 453 MB memory for the cache. "-resize 2000x2000" needs another 16 MB. I don't know how much the JPG compression and writing needs.

Your machine has only 1 GB memory, so I'm fairly sure that IM is running out of memory, probably while the JPG is being written. You might try another format, such as PNG, or TIFF with no compression. You might try ensuring that no other software is running at the same time.

Do you have secondary storage, like a disk? If so, you can set limits in policy.xml so the cache isn't stored in memory, but this will be slow. See http://www.imagemagick.org/script/archi ... tera-pixel

Getting more memory is the obvious route. It costs less than UK £1 per GB at my local supermarket.