ImageMagick

How to pixelate/blur an image using ImageMagick?

只愿长相守 提交于 2021-02-18 05:13:46
问题 I want to pixelate and/or blur an image. I've found the command for the blurring: $convert image.jpg -blur 18,5 newimage.jpg to work but I cannot blur the image any more. And how do I pixelate the image? I couldn't find a sound example around the net. Thx 回答1: This worked nicely for me, gives a sort of cross between pixelating and blurring: convert -resize 10% image.jpg newimage.jpg convert -resize 1000% newimage.jpg newimage.jpg You can be sure that the data cannot be retrieved, should that

How to pixelate/blur an image using ImageMagick?

天涯浪子 提交于 2021-02-18 05:10:31
问题 I want to pixelate and/or blur an image. I've found the command for the blurring: $convert image.jpg -blur 18,5 newimage.jpg to work but I cannot blur the image any more. And how do I pixelate the image? I couldn't find a sound example around the net. Thx 回答1: This worked nicely for me, gives a sort of cross between pixelating and blurring: convert -resize 10% image.jpg newimage.jpg convert -resize 1000% newimage.jpg newimage.jpg You can be sure that the data cannot be retrieved, should that

Cant loop over files with spaces in the filename, windows batch file and image magick

百般思念 提交于 2021-02-17 06:18:03
问题 I'm trying to loop over a bunch of folders, create subfolders then loop on the files, convert them with imagemagick and put them into the new subfolders and rename them. Some files have spaces in their name and cause the error... How can I fix this? error message : convert: unable to open image 'photo': No such name or directory @error/blob.c/OpenBlob/3489. convert: no decode delegate for this image format '' @ error/constitute.c/ReadImage/554.** The Folder Structure looks like this... The

ImportError: MagickWand shared library not found[windows]

只谈情不闲聊 提交于 2021-02-16 05:36:41
问题 Good morning, After a lot of attemps running from wand.image import Image I get the following error: Traceback (most recent call last): File "C:\Users\XXXXX\PycharmProjects\PDF_convert\venv\lib\site-packages\wand\api.py", line 180, in <module> libraries = load_library() File "C:\Users\XXXXX\PycharmProjects\PDF_convert\venv\lib\site-packages\wand\api.py", line 135, in load_library raise IOError('cannot find library; tried paths: ' + repr(tried_paths)) OSError: cannot find library; tried paths:

ImportError: MagickWand shared library not found[windows]

房东的猫 提交于 2021-02-16 05:33:47
问题 Good morning, After a lot of attemps running from wand.image import Image I get the following error: Traceback (most recent call last): File "C:\Users\XXXXX\PycharmProjects\PDF_convert\venv\lib\site-packages\wand\api.py", line 180, in <module> libraries = load_library() File "C:\Users\XXXXX\PycharmProjects\PDF_convert\venv\lib\site-packages\wand\api.py", line 135, in load_library raise IOError('cannot find library; tried paths: ' + repr(tried_paths)) OSError: cannot find library; tried paths:

Getting error about ImageMagick With Python/MoviePy when I try add text clip

Deadly 提交于 2021-02-11 16:51:38
问题 I am using python 3.8.5 as well as the latest version of imagemagick and moviepy error (vs code): Traceback (most recent call last): File "C:\Users\edgib102\AppData\Local\Programs\Python\Python38-32\lib\site-packages\moviepy\video\VideoClip.py", line 1137, in __init__ subprocess_call(cmd, logger=None) File "C:\Users\edgib102\AppData\Local\Programs\Python\Python38-32\lib\site-packages\moviepy\tools.py", line 46, in subprocess_call proc = sp.Popen(cmd, **popen_params) File "C:\Users\edgib102

Getting error about ImageMagick With Python/MoviePy when I try add text clip

混江龙づ霸主 提交于 2021-02-11 16:51:34
问题 I am using python 3.8.5 as well as the latest version of imagemagick and moviepy error (vs code): Traceback (most recent call last): File "C:\Users\edgib102\AppData\Local\Programs\Python\Python38-32\lib\site-packages\moviepy\video\VideoClip.py", line 1137, in __init__ subprocess_call(cmd, logger=None) File "C:\Users\edgib102\AppData\Local\Programs\Python\Python38-32\lib\site-packages\moviepy\tools.py", line 46, in subprocess_call proc = sp.Popen(cmd, **popen_params) File "C:\Users\edgib102

Translate CLI ImageMagick to Magick++: threshold and depth

允我心安 提交于 2021-02-11 15:20:49
问题 I am converting a system call to Magick++ in my code, but I am having some trouble converting the threshold and depth . The original: convert /foo/bar.ppm -crop WxH+X+Y -threshold 50% -depth 1 /foo/out.ppm My current C++ version is: Magick::InitializeMagick(*argv); Magick::Image img; img.read("/foo/bar.ppm"); Magick::Image temp_img(img); temp_img.chop(Magick::Geometry(X,Y); temp_img.crop(Magick::Geometry(W,H)); temp_img.threshold(.50); temp_img.depth(1); temp_img.write("/foo/out.ppm"); The

wrong number of arguments (given 1, expected 0)

ぃ、小莉子 提交于 2021-02-11 14:51:21
问题 I want to upload photos to my website. After i selected the photos and click on "Add Photos" this error comes up. Any ideas how i can solve this? photos_controller.rb class PhotosController < ApplicationController def create @wall = Wall.find(params[:wall_id]) if params [:images] params[:images].each do |img| @wall.photos.create(image: img) end @photos = @wall.photos redirect_back(fallback_location: request.referer, notice: "Saved...") end end end walls.controller.rb class WallsController <

wrong number of arguments (given 1, expected 0)

核能气质少年 提交于 2021-02-11 14:49:59
问题 I want to upload photos to my website. After i selected the photos and click on "Add Photos" this error comes up. Any ideas how i can solve this? photos_controller.rb class PhotosController < ApplicationController def create @wall = Wall.find(params[:wall_id]) if params [:images] params[:images].each do |img| @wall.photos.create(image: img) end @photos = @wall.photos redirect_back(fallback_location: request.referer, notice: "Saved...") end end end walls.controller.rb class WallsController <