CloudFlare image optimization?

Cheerag Nundlall

Well-known member
Registered
Joined
Oct 12, 2016
Messages
332
Points
18
Can you recommend the CloudFlare image optimizing me anyway? I heard about this technique but don't know how to apply for my blog sites
Does it make my blogs really faster or is it getting slower?
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
I will not recommend it because you can easily do it from your blog, using a plugin like EWWW or with a script like the one I'm using.
 

Cheerag Nundlall

Well-known member
Registered
Joined
Oct 12, 2016
Messages
332
Points
18
Cheerag Nundlall
what is the meaning for these commands


Code:
cd /var/www
find . -name *.jp* | xargs jpegoptim --strip-all -m76
find . -iname '*.png' -print0 | xargs -0 optipng -o7 -preserve
why do i need to run them? can I ignore this step?
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
If you use my script it will do it automatically.

Code:
# For debian/Ubuntu
wget -qO optimize.sh https://git.virtubox.net/virtubox/wp-optimize/raw/master/deb-wp-optimize.sh && bash optimize.sh

#For Centos/RedHat
cd /var/www
wget -qO optimize.sh https://git.virtubox.net/virtubox/wp-optimize/raw/master/centos-wp-optimize.sh && bash optimize.sh

#For cPanel
cd /home/public_html
wget -qO optimize.sh https://git.virtubox.net/virtubox/wp-optimize/raw/master/centos-wp-optimize.sh && bash optimize.sh
But if you want to do it manually, you have to run the command :
Code:
find . -name *.jp* | xargs jpegoptim --strip-all -m76
find . -iname '*.png' -print0 | xargs -0 optipng -o7 -preserve
The first one find and optimize the jpg files, and the second do the same for the png
 

Cheerag Nundlall

Well-known member
Registered
Joined
Oct 12, 2016
Messages
332
Points
18
Cheerag Nundlall
I will try to install your sciprt and see how it will work but I need to backup my data first before running these commands

Code:
find . -name *.jp* | xargs jpegoptim --strip-all -m76
find . -iname '*.png' -print0 | xargs -0 optipng -o7 -preserve
I am afraid that it will make my image files corrupted after scanned and optimized them.

If i don't use your script, is there a way to optimize my images with Cloudflare like i asking or Cloudflare already done that for sites using their CDN services?
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
The process is fully lossless, jpegoptim and optipng are open-sources softwares available on the all the most popular linux distribution.
If you don't use this script, there are several wordpress plugins to do the job. EWWW, WP Smush etc ..
Cloudflare doesn't optimize image with the CDN services
 
Newer Threads
Replies
71
Views
45,272
Replies
8
Views
27,599
Replies
57
Views
22,114
Latest Threads
Replies
0
Views
24
Replies
1
Views
36
Replies
0
Views
29
Replies
2
Views
88
Replies
0
Views
77
Recommended Threads

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top