ImageMagick

Recommendation for real time image processing tools on Linux [closed]

删除回忆录丶 提交于 2020-01-06 11:07:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm trying to find a real time image processing tool that can do image resizing, image/text overlaying and format converting. I found some related posts but they don't quite answer my question. Prioritized criteria for the tool: The processing time needs to be less than 100 ms. The size of output image needs to

Rotate selected images in a folder using VBA and ImageMagick

China☆狼群 提交于 2020-01-06 08:22:21
问题 I want to check a folder if a rotated version of my images exists, if it doesn't I want to use ImageMagick to automatically do it for me (or another program if it would be a better option). This is my code: Dim imageDomain As String Dim imagePath As String Dim rotatePath As String Dim rotateBool As Boolean Dim imageRotator As Integer Dim rs As DAO.Recordset Set rs = CurrentDb.OpenRecordset("SELECT Afbeelding FROM Products") imageDomain = CurrentProject.Path & "\folder\" If Not (rs.EOF And rs

How to processing the image for tesserac in java?

和自甴很熟 提交于 2020-01-06 08:07:50
问题 I am trying to read characters from a image below using Tesseract: And here is my coding for reading the image. Tesseract tesseract = new Tesseract(); try { String text = tesseract.doOCR(new File(path)); // path of your image file System.out.println(text); } catch (TesseractException e) { e.printStackTrace(); } I failed to get the accurate text from the image. So how can i processing the image before reading? 回答1: tesseract is not suitable for captcha breaking. 来源: https://stackoverflow.com

Wand creates empty frame and irregular frame rate

柔情痞子 提交于 2020-01-06 07:47:29
问题 I have below snippet which creates a gif. This snippet is derived from hints here. The snippet creates an empty frame and frames have irregular delay between them. Notice delay between nothingness and first frame, and then second frame quickly appears. Why this happens? I had to create Image of particular size before hand because, wand is not resizing canvas according to maximum sized sequence. I have to find a way to sort that out as well. def render(self): # map anim gif wand = Image2(width

Wand creates empty frame and irregular frame rate

送分小仙女□ 提交于 2020-01-06 07:44:10
问题 I have below snippet which creates a gif. This snippet is derived from hints here. The snippet creates an empty frame and frames have irregular delay between them. Notice delay between nothingness and first frame, and then second frame quickly appears. Why this happens? I had to create Image of particular size before hand because, wand is not resizing canvas according to maximum sized sequence. I have to find a way to sort that out as well. def render(self): # map anim gif wand = Image2(width

Imagick not reflects the gravity once it is set

喜你入骨 提交于 2020-01-06 07:16:06
问题 I am trying to translate the following piece of Imagemagick command line code convert tmpI.mpc -gravity center -crop ${ww}x${hc}+0+0 +repage as follows $tmpIC->setGravity(imagick::GRAVITY_CENTER); $tmpIC->cropImage($ww, $hc, 0, 0); $tmpIC->setImagePage($tmpIC->getImageWidth(), $tmpIC->getImageHeight(), 0, 0); but setting or not setting the gravity makes no difference. Please tell me what is wrong with the piece of code I have Width and Height of the image before cropping are tmpIC-

How can we compress images in DAM AEM6.3?

一个人想着一个人 提交于 2020-01-06 06:52:07
问题 We are trying to increase the page score (google) for our website. One of the options to do this is " Image optimization ". As we have a huge number of images in the DAM, how can we compress/optimize them? Does AEM have any such tool to achieve this ? ImageMagick is one of the tool to achieve this. Do we need to integrate that with AEM or we'll have to re-upload all the images after compressing them using the tool? Any suggestions? 回答1: In contrast to CSS, JS and HTML files which can be

How can we compress images in DAM AEM6.3?

怎甘沉沦 提交于 2020-01-06 06:51:09
问题 We are trying to increase the page score (google) for our website. One of the options to do this is " Image optimization ". As we have a huge number of images in the DAM, how can we compress/optimize them? Does AEM have any such tool to achieve this ? ImageMagick is one of the tool to achieve this. Do we need to integrate that with AEM or we'll have to re-upload all the images after compressing them using the tool? Any suggestions? 回答1: In contrast to CSS, JS and HTML files which can be

Why is the maximum ffmpeg mjpeg quality so low?

三世轮回 提交于 2020-01-06 06:47:04
问题 I used ffmpeg to generate a one-frame mjpeg video at the maximum possible quality, like this: ffmpeg -i reference.png -frames:v 1 -codec:v mjpeg -q:v 1 -an 1.mkv I also made a reference conversion to jpeg using imagemagick, at 85% quality: convert reference.png -quality 85 85.jpg The resulting "1.mkv" is only 83K, despite the fact that 85.jpg is 88K - and that's not even the highest possible jpeg quality. At 95% imagemagick produces a file of 120K, and 207K at 100%. (Though it should be noted

Reducing colors in a PNG image is making the file size bigger

时光怂恿深爱的人放手 提交于 2020-01-06 02:37:18
问题 I am using ImageMagick to programmatically reduce the size of a PNG image by reducing the colors in the image. I get the images unique-colors and divide this by 2. Then I assign this value to the -colors option as follows: variable = unique-colors / 2 convert image.png -colors variable -depth 8 I thought this would substantially reduce the size of the image but instead it increases the images size on disk. Can anyone shed any light on this. Thanks. EDIT: Turns out the problem was dithering.