|
|
@ -65,33 +65,34 @@ sudo chmod 777 merge_scans.sh workshop_stream.sh marge_files.sh
|
|
|
|
```bash
|
|
|
|
```bash
|
|
|
|
nano /etc/ImageMagic-6/policy.xml
|
|
|
|
nano /etc/ImageMagic-6/policy.xml
|
|
|
|
```
|
|
|
|
```
|
|
|
|
ImageMagick came with very low limits:
|
|
|
|
|
|
|
|
|
|
|
|
<p>ImageMagick comes with very low limits:</p>
|
|
|
|
Resource limits:
|
|
|
|
|
|
|
|
Width: 16KP
|
|
|
|
Resource limits:<br>
|
|
|
|
Height: 16KP
|
|
|
|
Width: 16KP<br>
|
|
|
|
Area: 128MP
|
|
|
|
Height: 16KP<br>
|
|
|
|
Memory: 256MiB
|
|
|
|
Area: 128MP<br>
|
|
|
|
Map: 512MiB
|
|
|
|
Memory: 256MiB<br>
|
|
|
|
Disk: 1GiB
|
|
|
|
Map: 512MiB<br>
|
|
|
|
File: 768
|
|
|
|
Disk: 1GiB<br>
|
|
|
|
Thread: 4
|
|
|
|
File: 768<br>
|
|
|
|
Throttle: 0
|
|
|
|
Thread: 4<br>
|
|
|
|
Time: unlimited
|
|
|
|
Throttle: 0<br>
|
|
|
|
|
|
|
|
Time: unlimited<br>
|
|
|
|
change /etc/ImageMagick-6/policy.xml to more sensible defaults:
|
|
|
|
|
|
|
|
|
|
|
|
<p>change /etc/ImageMagick-6/policy.xml to more sensible defaults:</p>
|
|
|
|
Resource limits:
|
|
|
|
|
|
|
|
Width: 128KP
|
|
|
|
Resource limits:<br>
|
|
|
|
Height: 128KP
|
|
|
|
Width: 128KP<br>
|
|
|
|
Area: 1.0737GP
|
|
|
|
Height: 128KP<br>
|
|
|
|
Memory: 2GiB
|
|
|
|
Area: 1.0737GP<br>
|
|
|
|
Map: 4GiB
|
|
|
|
Memory: 2GiB<br>
|
|
|
|
Disk: 8GiB
|
|
|
|
Map: 4GiB<br>
|
|
|
|
File: 768
|
|
|
|
Disk: 8GiB<br>
|
|
|
|
Thread: 4
|
|
|
|
File: 768<br>
|
|
|
|
Throttle: 0
|
|
|
|
Thread: 4<br>
|
|
|
|
Time: unlimited
|
|
|
|
Throttle: 0<br>
|
|
|
|
|
|
|
|
Time: unlimited<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
###RUN
|
|
|
|
###RUN
|
|
|
|