best way to make images smaller?
Forum rules
We believe in Hello and Thank You.
We believe in Hello and Thank You.
best way to make images smaller?
If you were sending photos by email or making pictures smaller for posting on the web how do you make them small but keep reasonable qual?
I just tried imagemagick with the command
convert test.jpg -resize 50% half_test.jpg
and then took the same photo but uploaded it to tinypng.com
and the site produced a much smaller filesize but no noticable diff. in quality without even making it smaller in dimensions.
What do you guys use?
I just tried imagemagick with the command
convert test.jpg -resize 50% half_test.jpg
and then took the same photo but uploaded it to tinypng.com
and the site produced a much smaller filesize but no noticable diff. in quality without even making it smaller in dimensions.
What do you guys use?
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: best way to make images smaller?
imagemagick's convert, too. This is a must-read: https://www.smashingmagazine.com/2015/0 ... agemagick/
tl;dr
tl;dr
Code: Select all
mogrify -path OUTPUT_PATH -filter Triangle -define filter:support=2 -thumbnail OUTPUT_WIDTH -unsharp 0.25x0.25+8+0.065 -dither None -posterize 136 -quality 82 -define jpeg:fancy-upsampling=off -define png:compression-filter=5 -define png:compression-level=9 -define png:compression-strategy=1 -define png:exclude-chunk=all -interlace none -colorspace sRGB -strip INPUT_PATH
..gnutella..
Re: best way to make images smaller?
I just found it interesting that even with a -quality setting of say 60 the result was still a larger size than some of the online resizers and I couldn't see any difference in how it looked.
Edit, I read you link, it was epic!
Edit, I read you link, it was epic!
Last edited by aaah on Fri Oct 21, 2016 10:54 am, edited 1 time in total.
- wuxmedia
- Grasshopper
- Posts: 6454
- Joined: Wed Oct 17, 2012 11:32 am
- Location: Back in Blighty
- Contact:
Re: best way to make images smaller?
if you like tinypng - it has an API:
https://tinypng.com/developers/reference
https://tinypng.com/developers/reference
- ivanovnegro
- Minister of Truth
- Posts: 5451
- Joined: Wed Oct 17, 2012 11:12 pm
Re: best way to make images smaller?
Imagemagick all the way.
It has tons of options. There are people using Gimp but I prefer the magick stick.
Also a must read:
http://www.imagemagick.org/Usage/resize/
It has tons of options. There are people using Gimp but I prefer the magick stick.
Also a must read:
http://www.imagemagick.org/Usage/resize/
Re: best way to make images smaller?
ok then I shall experiment with i.m. to see if I can get it to rival the results online.
i.e. file size and quality
i.e. file size and quality
Re: best way to make images smaller?
ok messed with imagemagick but found it fiddly, ended up using a combo
for resizing dimensions and optimizing for smaller file size I use imagemagick combined with cjpeg, so I put this in my bash funcitons
but just for reducing file size but not dimensions I prefer just cjpeg
cjpeg is giving me files sizes to almost match tinypng.com
I read about cjpeg here
http://calendar.perfplanet.com/2014/mozjpeg-3-0/
but you have to compile it yourself, easy to do though.
ps, why do all my posts have to be read by a moderator first?!
for resizing dimensions and optimizing for smaller file size I use imagemagick combined with cjpeg, so I put this in my bash funcitons
Code: Select all
resizeand() {
convert -resize 50% "$1" TGA:- |
cjpeg -outfile cjpeg-compressandresize-image.jpg -targa
}
Code: Select all
optimage() {
cjpeg -quality 70 -outfile cjpeg-compressed-image.jpg "$1"
}
I read about cjpeg here
http://calendar.perfplanet.com/2014/mozjpeg-3-0/
but you have to compile it yourself, easy to do though.
ps, why do all my posts have to be read by a moderator first?!
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: best way to make images smaller?
This I wonder, too... I guess we moved you into the bad boys section together with some bots, Chinese shoes sellers and Nigerian scammers. Should be OK now ;)ps, why do all my posts have to be read by a moderator first?!
..gnutella..
Re: best way to make images smaller?
jesus, I guess I could be persuaded to sell shoes for the chinese but not scam for the Nigerians!
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: best way to make images smaller?
DEAR!
MY NAME IS MUMBALE MBAMBO, PRESIDENT OF SUDAN OIL CORPORATION!
MY NAME IS MUMBALE MBAMBO, PRESIDENT OF SUDAN OIL CORPORATION!
..gnutella..