5

Install ImageMagick with JPG, PNG and TIFF Delegates - Ubuntu (20.04)

 2 years ago
source link: https://gist.github.com/nickferrando/fb0a44d707c8c3efd92dedd0f79d2911
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Install ImageMagick with JPG, PNG and TIFF Delegates - Ubuntu (20.04)

Many thanks!!

Thanks!
can you please help me install webp delegate?

Author

nickferrando commented on Nov 23, 2020

edited

Many thanks!!

You're welcome @andreaCuesta!

Author

nickferrando commented on Nov 23, 2020

edited

Thanks!
can you please help me install webp delegate?

Hello @Awais-cb! Please try to follow these steps, before installing ImageMagick. It should work!

You save me bro, ty a lot.

You save me bro, ty a lot.

@julianpro2198 I'm glad to hear this. You're welcome!

This page should be in the search results when a layman tries to installs ImageMagick for the first time in Linux environment, as there are many out there but none instruct about the installation of delegates. Many thanks for such informative post.

The above post is missing the png delegate, if you can add the below it will make the post complete :)

#libjpg62-dev required in order to work with basic PNG files
sudo apt-get install -y libpng-dev

Dear aamirencodes,
many thanks for your feedback!
I've just updated it, with the missing PNG Library, thank you!
Nick

This page should be in the search results when a layman tries to installs ImageMagick for the first time in Linux environment, as there are many out there but none instruct about the installation of delegates. Many thanks for such informative post.

The above post is missing the png delegate, if you can add the below it will make the post complete :)

#libjpg62-dev required in order to work with basic PNG files
sudo apt-get install -y libpng-dev

thanks

Great work. Thanks!

Thank you so much! This solved my thumbnail issues with a mediawiki installation in under 10 minutes after fiddling around for a whole day!

I’m glad to know this!

I've followed all steps given by you above, but still get the error.

png_error

Here is a listing format available screenshot

available_png

I've followed all steps given by you above, but still get the error.

png_error

@dhruv-icreative Have you installed the dependency needed for PNG? The below one :
sudo apt-get install -y libpng-dev

If yes can you please try with the below command:
magick "input_file_path" -flip "output_file_path"

@aamirencodes Yes, I've installed the dependency for PNG.

Also tried your command, but it's giving me the same error.

Before jpg images also giving me the same error, then I followed all steps mentioned above.
Later on, I was able to work with jpg images, but not with PNG :(

Hello @dhruv-icreative,
I suggest you to check the presence of ZLIB library on your system: it may be missing or mis-configured.

If missing, you can install it as follow:

sudo apt get update
sudo apt install zlib1g

Let me know!

@nickferrando Thank you for the above instructions; I was wondering if some of the Delegates required to be installed above are uninstalling or cancelling out each other ; eg libtiff-dev REMOVES libjpeg62-dev. Will this affect the installation of ImageMagick In the Long run?

Thanks a lot!

Author

nickferrando commented on Feb 23

You’re welcome @abidullah667!

Author

nickferrando commented on Feb 27

You're welcome @shamsulaman786!

Hey, man! Thanks a lot, really! You saved me!

Author

nickferrando commented on Apr 11

I’m glad to hear this @tonyblaze27!

Thank you!!! It worked out finally

Author

nickferrando commented on Apr 12

Thank you!!! It worked out finally

Great @julia-blake!

PushHandle commented on Apr 12

edited

@nickferrando +1 @aamirencodes 'This page should be in the search results when a layman tries to installs ImageMagick for the first time in Linux environment'.

One question related to @aamirencodes note '#libjpg62-dev required in order to work with basic PNG files' :
I am seeing "Package libjpeg62-dev is not available." JPEG encode/decode works by installing the suggested replacement "libjpeg62-turbo-dev" but the PNG will not take.

Any thoughts?

Info:

Version: ImageMagick 7.1.0-29 Q16-HDRI x86_64 19841 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP(4.5) 
Delegates (built-in): jbig jpeg tiff 
Compiler: gcc (10.2)

PushHandle commented on Apr 13

edited

Update If you are on a Pixelbook or Chromebook running Debian 11 - These installation steps worked for me:
https://www.linuxcapable.com/how-to-install-imagemagick-on-debian-11/

PNG, WEBP, TIFF, JPG all working!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK