Questions tagged [jpegoptim]

29 questions
20
votes
1 answer

jpegoptim vs jpegtran vs mozjpeg

I found two slightly conflicting blog posts on this matter, here I summarize: jpegoptim and jpegtran perform identically and produce identical results, while mozjpeg takes twice as long for very marginal filesize savings mozjpeg takes approx 1.7*…
davidtgq
  • 3,780
  • 10
  • 43
  • 80
7
votes
1 answer

Gulp Imagemin not finishing

This is my Gulp task: //Image Optimization gulp.task( 'imagemin', function () { return gulp.src( imageDir + '**/*.{png,jpg,JPG,svg}' ) .pipe( imagemin( { progressive: true, use: [ …
Marten Zander
  • 2,385
  • 3
  • 17
  • 32
6
votes
1 answer

Google PageSpeed Insights Optimize Images Running New Image Compression?

I had all of the images on my site optimized perfect according to Google PageSpeed Insights for the last year+. Google PageSpeed Insights can be found here: https://developers.google.com/speed/pagespeed/insights/ However, I just ran it for my site…
2
votes
1 answer

jpegoptim: error creating temp file: mkstemps() failed

jpegoptim gives me this error: error creating temp file: mkstemps() failed jpegoptim -o *.jpg image1.jpg 2000x1333 24bit P JFIF [OK] 442829 --> 451511 bytes (-1.96%), skipped. image2.jpg 1500x1124 24bit P Exif XMP IPTC ICC JFIF [OK] 582748 -->…
the
  • 21,007
  • 11
  • 68
  • 101
2
votes
0 answers

Which JPG Optimization Method Does GTMetrix Use?

I am using jpegoptim with cronjob to optimize (even with lossy) my JPG formatted images. I use the following command find . -iname '*.jpg' -print0 | \ xargs -0 jpegoptim --max=90 --strip-all --preserve --totals But even, when I test with GTMetrix…
Lunatic Fnatic
  • 661
  • 2
  • 6
  • 17
2
votes
1 answer

How to shrink and optimize images?

I'm currently using jpegoptim on CentOS 6. It lets you set a quality and file size benchmark. However, it doesn't let you resize the images. I have 5000 images of all file sizes and dimensions that I want to shrink to a max width and max file…
User
  • 23,729
  • 38
  • 124
  • 207
1
vote
1 answer

jpegoptim --dest option format

I am trying to compress a couple of pictures with jpegoptim. There is an option in the man pages for specifying the destination of the newly compressed jpg file (so it does not overwrite the existing file). I tried using the option but I keep…
1
vote
0 answers

Imagemagick Thumbs and Php

I have 2 types of thumbnails. I use Imagemagick. Small Thumbnail Video Poster Thumbnail called "b" images. The width and height is 278x170 for small thumbnails but I cropped them 208x128 to get rid off watermarks and I do. I have my php files first…
1
vote
1 answer

jpegoptim dont seem to work with shell_exec

When I am trying to use jpegoptim with php with this very basic shell_exec : $output = shell_exec('jpegoptim /home/domain/public_html/test.jpg'); echo $output; I got this output : /home/domain/public_html/test.jpg 2010x1128 24bit N Exif IPTC ICC…
Tahola
  • 1,040
  • 3
  • 19
  • 38
1
vote
1 answer

PageSpeed Insights optimize .jpg with jpegoptim lossy ideal %?

I am trying to remove 'Optimize images' warning from Google PageSpeed Insights. Validator says I can do about 40 - 50% image reduction for each jpg on my website. So I installed jpegoptim on Ubuntu and firstly try lossless optimization. It did about…
1
vote
0 answers

Django with Jpegoptim and Optipng

I have a website developed with Django 1.10. The users can send images to the website. Unfortunately there are images very heavy ! ( > 1 mo). Currently when the dimension is greater or equal to 4000*4000, I resize to 128*128 but it's not sufficient…
Preumsse
  • 173
  • 1
  • 2
  • 7
1
vote
2 answers

jpegoptim doesnt compress file

I have jpegoptim version 1.2.3, and PageSpeed Insights says that I can reduce my image by 36,6 KB (95 %). But using jpegoptim image.jpg --strip-all image.jpg 147x196 24bit JFIF [OK] 39227 --> 39227 bytes (0.00%), skipped. does nothing.
DC Cat
  • 35
  • 2
  • 8
1
vote
1 answer

Better Compression with jpegoptim

I'm trying to optimize my photos for google insight. I'm using jpegoptim for it. I'm using $jpegoptim --strip-all --max=60 myfile.jpg but still google insight says that it is possible reduce file size +60% Then I tried $jpegoptim --strip-all…
fobus
  • 1,938
  • 8
  • 29
  • 48
1
vote
0 answers

Carrierwave - Optimized Original Image

I am trying to store one version of the image which is optimized using jpegotim but has the original resolution Lot of images which are 10mb+ holds a lot of unnecessary data. Which when loaded is unnecessary on the client side. Is there any…
Harsha M V
  • 54,075
  • 125
  • 354
  • 529
1
vote
1 answer

how to install jpegoptim on php apache server

I am writing a php app to compress images on my server using jpegoptim. Currently I have installed jpegoptim on my machine (Ubuntu14.04) and its working fine on the terminal. But when I try to run the following code in a php file on my local machine…
1
2