Programowanie w systemie UNIX/ImageMagic: Różnice pomiędzy wersjami
Usunięta treść Dodana treść
m →Źródła: kod |
m →Kod: ref |
||
Linia 493:
"Internally, IM scales pixel values from the quantumrange of the 16-bit per channel images (range 0 to 65535 integers) or 8-bit per channel images (range 0 to 255 integers) to the range 0 to 1 (floats). But when processing is done, it converts back to integers of the quantumrange before writing out the image."<ref>[https://imagemagick.org/discourse-server/viewtopic.php?f=7&t=31513 imagemagick.org: dyskusja]</ref>
=Problemy=
==convert-im6.q16hdri: cache resources exhausted==
Przy konwersji duzego pliku pojawia się komunikat:
convert-im6.q16hdri: cache resources exhausted
Rozwiązanie: zmiana limitów:
* dysk<ref>[http://p-s.co.nz/wordpress/imagemagick-cache-resources-exhausted-resolved/ ImageMagick cache resources exhausted resolved by Grant]</ref>
Sprawdzamy limity:<ref>[https://imagemagick.org/script/architecture.php#tera-pixel imagemagick: architecture, tera-pixel]</ref>
identify -list policy
Zmieniamy doraźnie:<ref>[https://www.imagemagick.org/discourse-server/viewtopic.php?t=10546 imagemagick: Cache resources exhausted]</ref>
convert -limit memory 100mb -limit disk 1gb -resize 100x100 p.png p2.png
Zmieniamy limity na stałe w pliku policy.xml:
sudo gedit /etc/ImageMagick-6/policy.xml
z :
<policy domain="resource" name="disk" value="1GiB">
na
<policy domain="resource" name="disk" value="10GiB"/>
=Źródła=
|