Я нашел сценарий bash для imagemagick, чтобы сделать это Фред Вайнхаус.
Использование командной строки:
USAGE: cartoon [-p pattern] [-n numlevels] [-m method] [-e edgeamount]
[-b brightness] [-s saturation] infile outfile
USAGE: cartoon [-h or -help]
-p ... pattern ...... segmentation pattern (shape); 0<=integer<=100;
..................... default=70
-n ... numlevels .... number of desired segmentation levels; integer>=2;
..................... default=6
-m ... method ....... edge method; 1 or 2; default=1
-e ... edgeamount ... amount of edges; float>=0; default=4
-b ... brightness ... brightness of cartoon; integer>=0; default=100
-s ... saturation ... saturation of cartoon; integer>=0; default=150
PURPOSE: To create a cartoon-like appearance to an image.
(больше на самом сайте). Что делает скрипт. .
(Optionally) applies a median filter to the image
Reduces the number of colors in the filtered image
Converts the original image to grayscale
(Optionally) applies a median filter to the grayscale image
Applies a gradient edge detector to the grayscale image
Thresholds the edge image to binary
Composites the edge image with the color reduced image
На его сайте есть образцы, но они не близки вашим примерам. Вы, вероятно, должны будете играть с настройками, чтобы он выглядел так, как выглядят ваши изображения.
Из любопытства я решил просто перезапустить CUPS
sudo service cups restart
Works.
ПРИМЕЧАНИЕ: прочитайте обновление вопроса, почему это временное исправление.
Из любопытства я решил просто перезапустить CUPS
sudo service cups restart
Works.
ПРИМЕЧАНИЕ: прочитайте обновление вопроса, почему это временное исправление.