You are Here:
Linux Lite 4.8 Final is now available for download and installation



Compression

Author (Read 856 times)

0 Members and 2 Guests are viewing this topic.

Compression
« on: December 01, 2017, 07:45:39 PM »
 

liteuser1

  • New to Forums
  • *
  • 3
    Posts
  • Country: au
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 3.6 32bit

  • CPU: AMD A4-6300APU

  • MEMORY: 4Gb

  • VIDEO CARD: Radeon HD Graphics
Hello, i am try to compress some images with imagemagick for my website but getting a bit confused what to type in terminal.

On google`s website https://developers.google.com/speed/docs/insights/OptimizeImages  it shows this --> INPUT.gif_or_png -strip [-resize WxH] [-alpha Remove] OUTPUT.png.

One of my images i need to compress is breeding.jpg. Any help would be appreciated.

liteuser1.

 


Re: Compression
« Reply #1 on: December 01, 2017, 08:32:19 PM »
 

ralphy

  • PayPal Supporter
  • Gold Level Poster
  • *****
  • 741
    Posts
  • Country: us
  • Reputation: 115
  • Linux Lite Developer

  • Linux Lite: 3.8 64bit
Browse to the folder where your image is located. Then right click an empty spot and select "Open in Terminal" from the dropdown menu.


Then copy and paste the following Terminal command:


Code: [Select]
convert -strip -interlace Plane -gaussian-blur 0.05 -quality 90% breeding.jpg breeding2.jpg

The command above will compress the image to 90% quality and save it in the same location as the source image as a copy breeding2.jpg - Note that I did not use -resize WxH - that option is only used if you are trying to resize the image instead of compressing it.


For many more ImageMagick options, type convert --help in a Terminal window and have a blast :)
https://unlockforus.com

Sorry for seeming stupid and preferring Linux - I just don't know any better.

 

Re: Compression
« Reply #2 on: December 01, 2017, 08:39:15 PM »
 

liteuser1

  • New to Forums
  • *
  • 3
    Posts
  • Country: au
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 3.6 32bit

  • CPU: AMD A4-6300APU

  • MEMORY: 4Gb

  • VIDEO CARD: Radeon HD Graphics
ralphy, cheers for the reply and help. You explained it perfectly for me. I will go to the terminal and type convert --help and read on.
 


Tags:
 


Linux Lite 4.8 Final is now available for download and installation