Search found 4 matches

by nexus4.alii1991
2018-12-20T16:42:38-07:00
Forum: IMagick
Topic: Compressing images on my Server website ONCE ONLY via CRON TAB
Replies: 5
Views: 7333

Re: Compressing images on my Server website ONCE ONLY

While looking around i found a proposed solution but i need to make the code work it is as following: nice -n 15 find . -type f -size +100000c -name '*.jpg' | [[ $(identify -format %c {}) != *optimised* ]] && { echo Optimising {}; convert {} -set comment "optimised" -sampling-factor 4:2:0 -strip -q...
by nexus4.alii1991
2018-12-20T10:37:03-07:00
Forum: IMagick
Topic: Compressing images on my Server website ONCE ONLY via CRON TAB
Replies: 5
Views: 7333

Re: Compressing images on my Server website ONCE ONLY

While looking around i found a proposed solution but i need to make the code work it is as following: nice -n 15 find . -type f -size +100000c -name '*.jpg' | [[ $(identify -format %c {}) != *optimised* ]] && { echo Optimising {}; convert {} -set comment "optimised" -sampling-factor 4:2:0 -strip -qu...
by nexus4.alii1991
2018-12-20T09:31:00-07:00
Forum: IMagick
Topic: Compressing images on my Server website ONCE ONLY via CRON TAB
Replies: 5
Views: 7333

Re: Compressing images on my Server website ONCE ONLY

I agree with you, to add a comment or to use identify in order to find out which images already compressed. But how can i do this and apply it in the same command written above. As you can see i am doing the compression using one command in cron job every 24 hours, so how can i tell this command to ...
by nexus4.alii1991
2018-12-19T17:40:04-07:00
Forum: IMagick
Topic: Compressing images on my Server website ONCE ONLY via CRON TAB
Replies: 5
Views: 7333

Compressing images on my Server website ONCE ONLY via CRON TAB

Hi, I have a website hosted on a shared hosting package. I am using Imagick to compress all images on my websites jpg and jpeg that have a size over 100kb, the command i am using is: For JPG: nice -n 15 find . -type f -size +100000c -name '*.jpg' -exec convert {} -sampling-factor 4:2:0 -strip -qual...