imagemagick increases size of image on conversion - imagemagick

I am using ImageMagick version (6.8.9). On converting the image from one format to another the file size seems to increase. I am not able to find out the exact treason for this. I used quality as well. Still i am not able to find a solution for this problem
Thanks in advance

Related

Reducing assets size on iOS with unity

My android build size is 30mb, but my iOS build size (appstore size) is 400mb. After some researches, I found out that it may be because of assets compression. However, I found really old answers on the forum and I don't know what to do exactly.
I have several PNG images of the size 8192x1080 that I can't shrink because of the quality (I know this is big, but suppose there is no way to reduce or split it) :
What should I do ?
Use a plugin ? Which one ?
Create an AssetBundle ? I never used it.
Make my images 8192x8192 ? When I do so, the size increase to 85mb.
Don't use Sprite type but Advanced type?
An other question; when my image is not ARGB but RGB, the second warning message change from PVRTC to ETC1. What is the reason and consequence of it ?
Thanks for the help.

How to crop images with description file in opencv

I used imagemaker tool to select targets for positive library, and generated a description file, i want to know how i can get the images cropped with the file?
Thanks.
Do you possibly mean the ImageClipper tool? If so, there is no implemented solution to save your cropped positives.

Webp Images Taking much time to load

My app has huge size of images, I wanted to reduce the size, I have achieved reducing the size by using webp format images. I followed this.but the sad part is, It is taking so much of time to load images as a result my app performance is vey slow.Could any one help how to fix this issue?
Thanks in advance.

Calculate the height and width of image from the source file

I need to calculate the image width and height from the actual image file, so I'm reading the image with open file. so I have bunch of characters and numbers and everything that seems meaningless and they are presenting rgb information probably.
I just want to calculate the size of the image with the raw file information
I am programming in Erlang language but the code in any language will help as we are working with raw file as long as we don't use built-in libraries.
Thank you all in advance for help
I found the answer by going to details of each format,
So it works like this
JPG : you can find the width and height after the bytes "255,192,0,17,8" after that its the information for size
PNG : you can find it after "IHDR"
GIF : you can find it after "GIF89a"
there are information for more but this is the most common image types on internet
Thank you all for your time
I assume when you say 'raw' you mean you only have the pixel values.
In this case there isn't always a way to know the width and height.
Say you read 400 pixels. In this case a valid image side may be any whole factorization of 400, e.g. 1x400, 2x200, 4x100, 8x50, 20x20 etc. and transposed as well.
Not to mention the fact that many image formats include some padding for pixel rows that are not multiples of 4, 8 or 16...
The way it is coded in the image file depend on the image type, which hopefully is also coded in the image file. you can have a look at the question Getting Image size of JPEG from its binary for an example with JPEG coding.
If your data is unknown, use Octave and load the image. Then take a look at this page:
http://www.gnu.org/software/octave/doc/interpreter/Displaying-Images.html
for commands to display images. Hopefully with some manipulation it will work. This works for raw images, though there are specific decoders. Once you understand how the image is, you can write the equivalent C code.

Get text from image with ImageMagick and Tesseract

I wanted to know if anyone has ever used Tesseract with ImageMagick to get precise text from image. My main concern is with the small font texts present in an image (or some text that are not clearly visible). The only way I am able to retrieve those unclear texts are by modifying the image by ImageMagick like - by scaling the image, sometimes cropping the image....
I wanted to know if someone has integrated ImageMagick and Tesseract to create even powerful tool?
Till now, I have come up with a script that can search the text in the image... The script uses imagemagick and tesseract. The script is still under development, but you can look at it here

Resources