Version Description
- Changed: Check php version
Download this release
Release Info
Developer | webdorado |
Plugin | Image Optimizer by 10web – Image Optimizer and Compression plugin |
Version | 1.0.10 |
Comparing to | |
See all releases |
Code changes from version 1.0.9 to 1.0.10
- assets/css/admin_main.css +168 -153
- assets/js/admin_main.js +0 -16
- includes/iowd-optimize.php +2 -2
- io-wd.php +92 -77
- iowd_class.php +18 -22
- readme.txt +74 -84
- wd/assets/css/overview.css +8 -8
assets/css/admin_main.css
CHANGED
@@ -1103,41 +1103,40 @@ input:checked + .iowd-slider:before {
|
|
1103 |
/*10web banner*/
|
1104 |
.tenweb_banner{
|
1105 |
padding: 12px 30px 11px;
|
1106 |
-
|
1107 |
-
|
1108 |
box-sizing: border-box;
|
1109 |
-webkit-box-sizing: border-box;
|
1110 |
-moz-box-sizing: border-box;
|
|
|
|
|
|
|
|
|
|
|
1111 |
}
|
1112 |
.tenweb_banner *{
|
1113 |
color:#ffffff;
|
1114 |
}
|
1115 |
-
|
1116 |
-
float: left;
|
1117 |
-
}
|
1118 |
-
.tenweb_banner-center,
|
1119 |
-
.tenweb_banner-right {
|
1120 |
-
float: right;
|
1121 |
-
}
|
1122 |
.tenweb_banner > div{
|
1123 |
-
|
1124 |
}
|
1125 |
|
1126 |
.tenweb_banner .tenweb_banner-center > div{
|
1127 |
-
|
1128 |
-
|
1129 |
}
|
1130 |
.tenweb_and {
|
1131 |
font-size: 26px;
|
1132 |
font-weight: lighter;
|
1133 |
text-align:center;
|
1134 |
-
|
1135 |
line-height: 2.7;
|
1136 |
}
|
1137 |
-
.
|
1138 |
font-weight: normal;
|
1139 |
font-size: 19px;
|
1140 |
-
|
1141 |
}
|
1142 |
.tenweb_services {
|
1143 |
line-height: 1.8;
|
@@ -1204,7 +1203,7 @@ input:checked + .iowd-slider:before {
|
|
1204 |
background-size: 91px;
|
1205 |
}
|
1206 |
.tenweb_services span.seo:before {
|
1207 |
-
content: "";
|
1208 |
background-image: url(../img/header.svg);
|
1209 |
background-position: -12px -126px;
|
1210 |
background-size: 87px;
|
@@ -1214,21 +1213,18 @@ content: "";
|
|
1214 |
flex-grow: 1;
|
1215 |
}*/
|
1216 |
.tenweb_plugin_logo{
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
}
|
1223 |
.tenweb_plugin_name {
|
1224 |
text-transform: uppercase;
|
1225 |
font-size: 16px;
|
1226 |
font-weight: 500;
|
1227 |
}
|
1228 |
-
|
1229 |
-
width:calc(100% - 130px);
|
1230 |
-
max-width:100%;
|
1231 |
-
}
|
1232 |
.tenweb_banner_logo{
|
1233 |
width: 93px;
|
1234 |
height: 25px;
|
@@ -1238,148 +1234,167 @@ content: "";
|
|
1238 |
background-position: -15px 0px;
|
1239 |
}
|
1240 |
.tenweb_banner .mobile{
|
1241 |
-
|
1242 |
-
}
|
1243 |
-
.tenweb_banner-center.wd-clear {
|
1244 |
-
width: calc(100% - 430px);
|
1245 |
-
}
|
1246 |
-
@media only screen and (min-width: 1620px) {
|
1247 |
-
|
1248 |
-
.tenweb_banner .tenweb_banner-center .wd-clear div{
|
1249 |
-
text-align:center;
|
1250 |
-
float:left;
|
1251 |
-
}
|
1252 |
-
.tenweb_and {
|
1253 |
-
font-size: 36px;
|
1254 |
-
font-weight: lighter;
|
1255 |
-
line-height: 2;
|
1256 |
-
|
1257 |
-
}
|
1258 |
-
.tenweb_banner .tenweb_banner-center .wd-clear {
|
1259 |
-
padding-top: 11px;
|
1260 |
-
}
|
1261 |
-
.tenweb_services {
|
1262 |
-
width: calc(100% - 407px);
|
1263 |
-
max-width: 100%;
|
1264 |
-
}
|
1265 |
-
.tenweb_services span {
|
1266 |
-
font-size: 15px;
|
1267 |
-
}
|
1268 |
-
.tenweb_services {
|
1269 |
-
line-height: 2;
|
1270 |
-
}
|
1271 |
-
.tenweb_desc {
|
1272 |
-
line-height: 2.5;
|
1273 |
}
|
1274 |
|
|
|
|
|
1275 |
}
|
1276 |
-
|
1277 |
-
.tenweb_and {
|
1278 |
-
width: 100px;
|
1279 |
-
}
|
1280 |
-
}
|
1281 |
-
@media only screen and (max-width: 1270px){
|
1282 |
-
.tenweb_banner .screen,
|
1283 |
-
.tenweb_and {
|
1284 |
display:none;
|
1285 |
}
|
1286 |
-
|
1287 |
-
|
1288 |
-
|
1289 |
-
}
|
1290 |
-
.tenweb_banner .tenweb_banner-center .wd-clear {
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
}
|
1300 |
-
.
|
1301 |
-
|
1302 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1303 |
}
|
1304 |
-
|
1305 |
-
|
|
|
|
|
1306 |
}
|
1307 |
-
|
1308 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1309 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1310 |
}
|
1311 |
@media only screen and (max-width: 1120px){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1312 |
|
1313 |
-
.tenweb_banner {
|
1314 |
-
padding: 12px 21px 11px;
|
1315 |
-
text-align: center;
|
1316 |
-
}
|
1317 |
-
.tenweb_banner-right a.button {
|
1318 |
-
letter-spacing: 0px;
|
1319 |
-
font-size: 11px;
|
1320 |
-
padding: 9px 7px;
|
1321 |
-
}
|
1322 |
-
.tenweb_banner-center.wd-clear {
|
1323 |
-
width: calc(100% - 247px);
|
1324 |
-
}
|
1325 |
}
|
1326 |
@media only screen and (max-width: 1024px){
|
1327 |
-
.
|
1328 |
-
|
1329 |
-
}
|
1330 |
|
1331 |
}
|
1332 |
-
@media only screen and (max-width:
|
1333 |
-
|
1334 |
-
|
1335 |
-
|
1336 |
-
|
1337 |
-
|
1338 |
-
.
|
1339 |
-
|
1340 |
-
|
1341 |
-
|
1342 |
-
|
1343 |
-
|
1344 |
-
|
1345 |
-
|
1346 |
-
|
1347 |
-
|
1348 |
-
|
1349 |
-
.
|
1350 |
-
|
1351 |
-
|
1352 |
-
|
1353 |
-
|
1354 |
-
}
|
1355 |
-
.tenweb_services span:before {
|
1356 |
-
|
1357 |
-
|
1358 |
-
|
1359 |
-
|
1360 |
-
|
1361 |
-
|
1362 |
-
|
1363 |
-
|
1364 |
-
|
1365 |
-
|
1366 |
-
|
1367 |
-
|
1368 |
-
|
1369 |
-
|
1370 |
-
|
1371 |
-
|
1372 |
-
|
1373 |
-
|
1374 |
-
|
1375 |
-
|
1376 |
-
|
1377 |
-
|
1378 |
-
|
1379 |
}
|
1380 |
-
|
1381 |
-
|
1382 |
-
|
1383 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1384 |
}
|
1385 |
-
}
|
1103 |
/*10web banner*/
|
1104 |
.tenweb_banner{
|
1105 |
padding: 12px 30px 11px;
|
1106 |
+
background:#323a45;
|
1107 |
+
width: calc(100% - 20px);
|
1108 |
box-sizing: border-box;
|
1109 |
-webkit-box-sizing: border-box;
|
1110 |
-moz-box-sizing: border-box;
|
1111 |
+
display:table;
|
1112 |
+
}
|
1113 |
+
.tenweb_banner > div{
|
1114 |
+
display:table-cell;
|
1115 |
+
vertical-align:middle;
|
1116 |
}
|
1117 |
.tenweb_banner *{
|
1118 |
color:#ffffff;
|
1119 |
}
|
1120 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
1121 |
.tenweb_banner > div{
|
1122 |
+
text-align:center;
|
1123 |
}
|
1124 |
|
1125 |
.tenweb_banner .tenweb_banner-center > div{
|
1126 |
+
text-align:center;
|
1127 |
+
float:left;
|
1128 |
}
|
1129 |
.tenweb_and {
|
1130 |
font-size: 26px;
|
1131 |
font-weight: lighter;
|
1132 |
text-align:center;
|
1133 |
+
width:130px;
|
1134 |
line-height: 2.7;
|
1135 |
}
|
1136 |
+
.tenweb_desc_h3 {
|
1137 |
font-weight: normal;
|
1138 |
font-size: 19px;
|
1139 |
+
margin: 0 0 8px;
|
1140 |
}
|
1141 |
.tenweb_services {
|
1142 |
line-height: 1.8;
|
1203 |
background-size: 91px;
|
1204 |
}
|
1205 |
.tenweb_services span.seo:before {
|
1206 |
+
content: "";
|
1207 |
background-image: url(../img/header.svg);
|
1208 |
background-position: -12px -126px;
|
1209 |
background-size: 87px;
|
1213 |
flex-grow: 1;
|
1214 |
}*/
|
1215 |
.tenweb_plugin_logo{
|
1216 |
+
width:63px;
|
1217 |
+
height:48px;
|
1218 |
+
background:url(../img/img-opt-white.svg);
|
1219 |
+
margin:0 auto 10px;
|
1220 |
+
background-size:cover;
|
1221 |
}
|
1222 |
.tenweb_plugin_name {
|
1223 |
text-transform: uppercase;
|
1224 |
font-size: 16px;
|
1225 |
font-weight: 500;
|
1226 |
}
|
1227 |
+
|
|
|
|
|
|
|
1228 |
.tenweb_banner_logo{
|
1229 |
width: 93px;
|
1230 |
height: 25px;
|
1234 |
background-position: -15px 0px;
|
1235 |
}
|
1236 |
.tenweb_banner .mobile{
|
1237 |
+
display:none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1238 |
}
|
1239 |
|
1240 |
+
.tenweb_desc {
|
1241 |
+
line-height: 1.6;
|
1242 |
}
|
1243 |
+
.tenweb_services .tenweb_desc_h3{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1244 |
display:none;
|
1245 |
}
|
1246 |
+
@media only screen and (min-width: 1620px) {
|
1247 |
+
.tenweb_desc {
|
1248 |
+
width: 415px;
|
1249 |
+
}
|
1250 |
+
.tenweb_banner .tenweb_banner-center .wd-clear div{
|
1251 |
+
text-align:center;
|
1252 |
+
float:left;
|
1253 |
+
}
|
1254 |
+
.tenweb_and {
|
1255 |
+
font-size: 34px;
|
1256 |
+
font-weight: lighter;
|
1257 |
+
line-height: 2;
|
1258 |
+
|
1259 |
+
}
|
1260 |
+
.tenweb_banner .tenweb_banner-center .wd-clear {
|
1261 |
+
padding-top: 11px;
|
1262 |
+
}
|
1263 |
+
.tenweb_services {
|
1264 |
+
max-width: 100%;
|
1265 |
+
}
|
1266 |
+
.tenweb_services span {
|
1267 |
+
font-size: 15px;
|
1268 |
+
}
|
1269 |
+
.tenweb_services {
|
1270 |
+
line-height: 2;
|
1271 |
+
}
|
1272 |
+
|
1273 |
+
|
1274 |
}
|
1275 |
+
@media only screen and (max-width: 1620px){
|
1276 |
+
.tenweb_and {
|
1277 |
+
width: 100px;
|
1278 |
+
}
|
1279 |
}
|
1280 |
+
@media only screen and (max-width: 1400px){
|
1281 |
+
.tenweb_banner .tenweb_desc {
|
1282 |
+
display:none !important;
|
1283 |
+
}
|
1284 |
+
.tenweb_services .tenweb_desc_h3.screen{
|
1285 |
+
display:block;
|
1286 |
+
line-height: 1.4;
|
1287 |
+
}
|
1288 |
}
|
1289 |
+
@media only screen and (max-width: 1270px){
|
1290 |
+
.tenweb_and,
|
1291 |
+
.tenweb_services .tenweb_desc_h3.screen {
|
1292 |
+
display:none !important;
|
1293 |
+
}
|
1294 |
+
.tenweb_banner-left {
|
1295 |
+
min-width: 110px;
|
1296 |
+
}
|
1297 |
+
.tenweb_services .tenweb_desc_h3.mobile{
|
1298 |
+
display:block;
|
1299 |
+
}
|
1300 |
+
|
1301 |
+
.tenweb_banner .tenweb_banner-center .wd-clear {
|
1302 |
+
width: 100%;
|
1303 |
+
}
|
1304 |
+
|
1305 |
+
.tenweb_plugin_logo {
|
1306 |
+
width: 50px;
|
1307 |
+
height: 37px;
|
1308 |
+
}
|
1309 |
+
.tenweb_plugin_name {
|
1310 |
+
text-transform: none;
|
1311 |
+
font-size: 14px;
|
1312 |
+
}
|
1313 |
+
.tenweb_banner {
|
1314 |
+
padding: 12px 21px 11px;
|
1315 |
+
}
|
1316 |
+
.tenweb_banner-left {
|
1317 |
+
max-width: 140px;
|
1318 |
+
}
|
1319 |
}
|
1320 |
@media only screen and (max-width: 1120px){
|
1321 |
+
.tenweb_services {
|
1322 |
+
padding: 0 10px;
|
1323 |
+
}
|
1324 |
+
.tenweb_banner {
|
1325 |
+
padding: 12px 21px 11px;
|
1326 |
+
text-align: center;
|
1327 |
+
}
|
1328 |
+
.tenweb_banner-right a.button {
|
1329 |
+
letter-spacing: 0px;
|
1330 |
+
font-size: 11px;
|
1331 |
+
padding: 9px 7px;
|
1332 |
+
}
|
1333 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1334 |
}
|
1335 |
@media only screen and (max-width: 1024px){
|
1336 |
+
.tenweb_desc_h3 {
|
1337 |
+
font-size: 17px;
|
1338 |
+
}
|
1339 |
|
1340 |
}
|
1341 |
+
@media only screen and (max-width:910px){
|
1342 |
+
.tenweb_banner {
|
1343 |
+
padding: 12px 10px 11px;
|
1344 |
+
text-align: center;
|
1345 |
+
}
|
1346 |
+
|
1347 |
+
body:not(.auto-fold) .tenweb_banner > div {
|
1348 |
+
display: block;
|
1349 |
+
}
|
1350 |
+
body:not(.auto-fold) .tenweb_banner-left {
|
1351 |
+
margin: 0 auto;
|
1352 |
+
max-width: 214px;
|
1353 |
+
}
|
1354 |
+
body:not(.auto-fold) .tenweb_services {
|
1355 |
+
margin: 10px 0 20px;
|
1356 |
+
}
|
1357 |
+
|
1358 |
+
body:not(.auto-fold) .tenweb_services span:before {
|
1359 |
+
content: "";
|
1360 |
+
top: 6px;
|
1361 |
+
width: 20px;
|
1362 |
+
height: 16px;
|
1363 |
+
}
|
1364 |
+
body:not(.auto-fold) .tenweb_services span.pro-plugins:before {
|
1365 |
+
content: "";
|
1366 |
+
background-size: contain;
|
1367 |
+
}
|
1368 |
+
body:not(.auto-fold) .tenweb_services span.themes:before {
|
1369 |
+
content: "";
|
1370 |
+
background-position: -7px -72px;
|
1371 |
+
background-size: 62px;
|
1372 |
+
}
|
1373 |
+
body:not(.auto-fold) .tenweb_services span.backup:before {
|
1374 |
+
content: "";
|
1375 |
+
background-position: -9px -127px;
|
1376 |
+
background-size: 62px;
|
1377 |
+
}
|
1378 |
+
body:not(.auto-fold) .tenweb_services span.dashboard:before {
|
1379 |
+
content: "";
|
1380 |
+
background-position: -8px -54px;
|
1381 |
+
background-size: 63px;
|
1382 |
+
}
|
1383 |
+
body:not(.auto-fold) .tenweb_services span.seo:before {
|
1384 |
+
content: "";
|
1385 |
+
background-position: -7px -87px;
|
1386 |
+
background-size: 60px;
|
1387 |
+
}
|
1388 |
}
|
1389 |
+
@media only screen and (max-width:768px){
|
1390 |
+
.tenweb_banner > div {
|
1391 |
+
display: block;
|
1392 |
+
}
|
1393 |
+
.tenweb_banner-left {
|
1394 |
+
margin: 0 auto;
|
1395 |
+
max-width: 214px;
|
1396 |
+
}
|
1397 |
+
.tenweb_services {
|
1398 |
+
margin: 10px 0 20px;
|
1399 |
+
}
|
1400 |
}
|
|
assets/js/admin_main.js
CHANGED
@@ -1,14 +1,7 @@
|
|
1 |
var api = new iowdAPI();
|
2 |
api.setApiUrl(iowd.ajaxURL);
|
3 |
|
4 |
-
jQuery(window).resize(function () {
|
5 |
-
/*10web banner*/
|
6 |
-
wdResize();
|
7 |
-
});
|
8 |
jQuery(document).ready(function () {
|
9 |
-
|
10 |
-
/*10web banner*/
|
11 |
-
wdResize();
|
12 |
|
13 |
if(iowd.iowd_optimizing == 1){
|
14 |
finishOptimizing(0, 25);
|
@@ -275,14 +268,5 @@ function wdTabs(tabs, default_tab) {
|
|
275 |
});
|
276 |
}
|
277 |
|
278 |
-
function wdResize(){
|
279 |
-
if(jQuery(".tenweb_banner-center").length){
|
280 |
-
if (matchMedia('only screen and (max-width: 768px)').matches) {
|
281 |
-
jQuery(".tenweb_banner-left").after(jQuery(".tenweb_banner-center"));
|
282 |
-
} else{
|
283 |
-
jQuery(".tenweb_banner-right").after(jQuery(".tenweb_banner-center"));
|
284 |
-
}
|
285 |
-
}
|
286 |
-
}
|
287 |
|
288 |
|
1 |
var api = new iowdAPI();
|
2 |
api.setApiUrl(iowd.ajaxURL);
|
3 |
|
|
|
|
|
|
|
|
|
4 |
jQuery(document).ready(function () {
|
|
|
|
|
|
|
5 |
|
6 |
if(iowd.iowd_optimizing == 1){
|
7 |
finishOptimizing(0, 25);
|
268 |
});
|
269 |
}
|
270 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
271 |
|
272 |
|
includes/iowd-optimize.php
CHANGED
@@ -79,7 +79,7 @@ class IOWD_Optimize
|
|
79 |
return array("status" => "ok", "data_count" => $data_count);
|
80 |
}
|
81 |
|
82 |
-
public function get_attachments($ids = array(), $include_others = false, $
|
83 |
{
|
84 |
ini_set('max_execution_time', 300);
|
85 |
|
@@ -124,7 +124,7 @@ class IOWD_Optimize
|
|
124 |
if (count($image_data) > $limitation["limit"] && is_null($limit)) {
|
125 |
break;
|
126 |
}
|
127 |
-
$meta = $attachment->meta_value ? unserialize($attachment->meta_value) : $
|
128 |
$sizes = isset($meta["sizes"]) ? $meta["sizes"] : array();
|
129 |
$file = isset($meta["file"]) ? $meta["file"] : "no_file";
|
130 |
$file_name = $uploads['basedir'] . "/" . $file;
|
79 |
return array("status" => "ok", "data_count" => $data_count);
|
80 |
}
|
81 |
|
82 |
+
public function get_attachments($ids = array(), $include_others = false, $meta1 = array(), $remained = null, $limit = null)
|
83 |
{
|
84 |
ini_set('max_execution_time', 300);
|
85 |
|
124 |
if (count($image_data) > $limitation["limit"] && is_null($limit)) {
|
125 |
break;
|
126 |
}
|
127 |
+
$meta = $attachment->meta_value ? unserialize($attachment->meta_value) : $meta1;
|
128 |
$sizes = isset($meta["sizes"]) ? $meta["sizes"] : array();
|
129 |
$file = isset($meta["file"]) ? $meta["file"] : "no_file";
|
130 |
$file_name = $uploads['basedir'] . "/" . $file;
|
io-wd.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Image Optimizer WD
|
5 |
* Plugin URI: https://10web.io/services/image-optimizer/
|
6 |
* Description: Image Optimizer WordPress plugin enables you to resize, compress and optimize PNG, JPG, GIF files while maintaining image quality.
|
7 |
-
* Version: 1.0.
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -27,89 +27,104 @@ define('IOWD_PREFIX', "iowd");
|
|
27 |
define('IOWD_API_URL', "https://optimizer.10web.io/api/");
|
28 |
|
29 |
setlocale(LC_ALL, 'en_US.UTF-8');
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
|
|
|
|
|
|
35 |
|
36 |
-
if (
|
37 |
-
|
38 |
-
|
39 |
-
$rest = new IOWD_Rest();
|
40 |
-
$rest->register_routes();
|
41 |
-
});
|
42 |
-
}
|
43 |
|
44 |
-
if (
|
45 |
-
|
46 |
-
|
|
|
|
|
47 |
|
48 |
-
if (version_compare(phpversion(), "5.4", '>')) {
|
49 |
-
require_once(IOWD_DIR_INCLUDES . '/iowd-media-library.php');
|
50 |
-
add_action('plugins_loaded', array('IOWD', 'get_instance'));
|
51 |
-
register_deactivation_hook(__FILE__, array('IOWD', 'deactivate'));
|
52 |
}
|
53 |
|
54 |
-
|
|
|
|
|
55 |
|
56 |
-
|
57 |
-
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
|
60 |
-
global $iowd_plugin_options;
|
61 |
-
|
62 |
-
$iowd_plugin_options = array(
|
63 |
-
"prefix" => IOWD_PREFIX,
|
64 |
-
"wd_plugin_id" => 69,
|
65 |
-
"plugin_title" => "Image Optimizer WD",
|
66 |
-
"plugin_wordpress_slug" => "image-optimizer-wd",
|
67 |
-
"plugin_dir" => IOWD_DIR,
|
68 |
-
"plugin_main_file" => __FILE__,
|
69 |
-
"description" => 'Optimize images and increase page load time!',
|
70 |
-
"plugin_features" => array(
|
71 |
-
0 => array(
|
72 |
-
"title" => __("DASHBOARD REPORTS", IOWD_PREFIX),
|
73 |
-
"description" => __("See how much space you’ve saved. Get reports on compression results for images you've optimized directly in your 10Web dashboard.", IOWD_PREFIX),
|
74 |
-
"logo" => IOWD_URL_IMG . "/overview/Reports.svg"
|
75 |
-
),
|
76 |
-
1 => array(
|
77 |
-
"title" => __("SCHEDULE OPTIMIZATION", IOWD_PREFIX),
|
78 |
-
"description" => __("Automatically optimize new images with scheduled optimization functionality. Choose to optimize images on an hourly, twice daily or daily basis.", IOWD_PREFIX),
|
79 |
-
"logo" => IOWD_URL_IMG . "/overview/Scheduling.svg"
|
80 |
-
),
|
81 |
-
2 => array(
|
82 |
-
"title" => __("OPTIMIZE MORE IMAGES", IOWD_PREFIX),
|
83 |
-
"description" => __("Have more than 1000 images on your website? Choose the premium plan to compress and optimize all images on your website.", IOWD_PREFIX),
|
84 |
-
"logo" => IOWD_URL_IMG . "/overview/More-Images.svg"
|
85 |
-
),
|
86 |
-
3 => array(
|
87 |
-
"title" => __("EXTREME COMPRESSION", IOWD_PREFIX),
|
88 |
-
"description" => __("Reduces image size up to 90% by choosing the extreme compression mode that will resize images with a tiny loss of quality.", IOWD_PREFIX),
|
89 |
-
"logo" => IOWD_URL_IMG . "/overview/Compression-Modes.svg"
|
90 |
-
),
|
91 |
-
4 => array(
|
92 |
-
"title" => __("PDF FILE OPTIMIZATION", IOWD_PREFIX),
|
93 |
-
"description" => __("Get the ability to compress and optimize any PDF documents on your WordPress website without losing image quality.", IOWD_PREFIX),
|
94 |
-
"logo" => IOWD_URL_IMG . "/overview/PDF-File-Optimization.svg"
|
95 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
|
97 |
-
)
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
"
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
);
|
114 |
-
|
115 |
-
ten_web_init($iowd_plugin_options);
|
4 |
* Plugin Name: Image Optimizer WD
|
5 |
* Plugin URI: https://10web.io/services/image-optimizer/
|
6 |
* Description: Image Optimizer WordPress plugin enables you to resize, compress and optimize PNG, JPG, GIF files while maintaining image quality.
|
7 |
+
* Version: 1.0.10
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
27 |
define('IOWD_API_URL', "https://optimizer.10web.io/api/");
|
28 |
|
29 |
setlocale(LC_ALL, 'en_US.UTF-8');
|
30 |
+
if (version_compare(phpversion(), "5.4", '>')) {
|
31 |
+
$uri = $_SERVER['REQUEST_URI'];
|
32 |
+
if (version_compare(phpversion(), "5.4", '>') && (strpos($uri, "iowd") || (defined('DOING_AJAX') && DOING_AJAX && isset($_POST["action"]) && $_POST["action"] == "optimize"))) {
|
33 |
+
require_once('vendor/autoload.php');
|
34 |
+
}
|
35 |
|
36 |
+
if (class_exists("WP_REST_Controller")) {
|
37 |
+
require_once('iowd-rest.php');
|
38 |
+
add_action('rest_api_init', function () {
|
39 |
+
$rest = new IOWD_Rest();
|
40 |
+
$rest->register_routes();
|
41 |
+
});
|
42 |
+
}
|
43 |
|
44 |
+
if (is_admin() || (defined('DOING_CRON') && DOING_CRON)) {
|
45 |
+
require_once('iowd_class.php');
|
46 |
+
register_activation_hook(__FILE__, array('IOWD', 'activate'));
|
|
|
|
|
|
|
|
|
47 |
|
48 |
+
if (version_compare(phpversion(), "5.4", '>')) {
|
49 |
+
require_once(IOWD_DIR_INCLUDES . '/iowd-media-library.php');
|
50 |
+
add_action('plugins_loaded', array('IOWD', 'get_instance'));
|
51 |
+
register_deactivation_hook(__FILE__, array('IOWD', 'deactivate'));
|
52 |
+
}
|
53 |
|
|
|
|
|
|
|
|
|
54 |
}
|
55 |
|
56 |
+
if (!class_exists("TenWeb")) {
|
57 |
+
require_once(IOWD_DIR . '/wd/start.php');
|
58 |
+
}
|
59 |
|
60 |
+
global $iowd_plugin_options;
|
61 |
+
|
62 |
+
$iowd_plugin_options = array(
|
63 |
+
"prefix" => IOWD_PREFIX,
|
64 |
+
"wd_plugin_id" => 69,
|
65 |
+
"plugin_title" => "Image Optimizer WD",
|
66 |
+
"plugin_wordpress_slug" => "image-optimizer-wd",
|
67 |
+
"plugin_dir" => IOWD_DIR,
|
68 |
+
"plugin_main_file" => __FILE__,
|
69 |
+
"description" => 'Optimize images and increase page load time!',
|
70 |
+
"plugin_features" => array(
|
71 |
+
0 => array(
|
72 |
+
"title" => __("DASHBOARD REPORTS", IOWD_PREFIX),
|
73 |
+
"description" => __("See how much space you’ve saved. Get reports on compression results for images you've optimized directly in your 10Web dashboard.", IOWD_PREFIX),
|
74 |
+
"logo" => IOWD_URL_IMG . "/overview/Reports.svg"
|
75 |
+
),
|
76 |
+
1 => array(
|
77 |
+
"title" => __("SCHEDULE OPTIMIZATION", IOWD_PREFIX),
|
78 |
+
"description" => __("Automatically optimize new images with scheduled optimization functionality. Choose to optimize images on an hourly, twice daily or daily basis.", IOWD_PREFIX),
|
79 |
+
"logo" => IOWD_URL_IMG . "/overview/Scheduling.svg"
|
80 |
+
),
|
81 |
+
2 => array(
|
82 |
+
"title" => __("OPTIMIZE MORE IMAGES", IOWD_PREFIX),
|
83 |
+
"description" => __("Have more than 1000 images on your website? Choose the premium plan to compress and optimize all images on your website.", IOWD_PREFIX),
|
84 |
+
"logo" => IOWD_URL_IMG . "/overview/More-Images.svg"
|
85 |
+
),
|
86 |
+
3 => array(
|
87 |
+
"title" => __("EXTREME COMPRESSION", IOWD_PREFIX),
|
88 |
+
"description" => __("Reduces image size up to 90% by choosing the extreme compression mode that will resize images with a tiny loss of quality.", IOWD_PREFIX),
|
89 |
+
"logo" => IOWD_URL_IMG . "/overview/Compression-Modes.svg"
|
90 |
+
),
|
91 |
+
4 => array(
|
92 |
+
"title" => __("PDF FILE OPTIMIZATION", IOWD_PREFIX),
|
93 |
+
"description" => __("Get the ability to compress and optimize any PDF documents on your WordPress website without losing image quality.", IOWD_PREFIX),
|
94 |
+
"logo" => IOWD_URL_IMG . "/overview/PDF-File-Optimization.svg"
|
95 |
+
),
|
96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
),
|
98 |
+
"user_guide" => array(),
|
99 |
+
"overview_welcome_image" => IOWD_URL_IMG . "/img-opt-logo.svg",
|
100 |
+
"video_youtube_id" => "",
|
101 |
+
"plugin_wd_url" => "https://10web.io/services/image-optimizer/",
|
102 |
+
"plugin_wd_demo_link" => "",
|
103 |
+
"plugin_wd_addons_link" => "",
|
104 |
+
"after_subscribe" => "admin.php?page=iowd_settings",
|
105 |
+
"plugin_wizard_link" => "",
|
106 |
+
"plugin_menu_title" => __('Image optimizer', IOWD_PREFIX),
|
107 |
+
"plugin_menu_icon" => IOWD_URL_IMG . "/icon.png",
|
108 |
+
"deactivate" => true,
|
109 |
+
"subscribe" => true,
|
110 |
+
"custom_post" => "iowd_settings",
|
111 |
+
"menu_capability" => "manage_options",
|
112 |
+
"menu_position" => null,
|
113 |
+
);
|
114 |
|
115 |
+
ten_web_init($iowd_plugin_options);
|
116 |
+
} else {
|
117 |
+
add_action('admin_notices', 'iowd_php_version_admin_notice');
|
118 |
+
}
|
119 |
+
|
120 |
+
|
121 |
+
function iowd_php_version_admin_notice()
|
122 |
+
{
|
123 |
+
?>
|
124 |
+
<div class="notice notice-error">
|
125 |
+
<h3>Image Optimizer WD</h3>
|
126 |
+
<p><?php _e('This version of the plugin requires PHP 5.5.0 or higher.', 'iowd'); ?></p>
|
127 |
+
<p><?php _e('We recommend you to update PHP or ask your hosting provider to do that.', 'buwd'); ?></p>
|
128 |
+
</div>
|
129 |
+
<?php
|
130 |
+
}
|
|
|
|
|
|
iowd_class.php
CHANGED
@@ -8,7 +8,7 @@ class IOWD
|
|
8 |
{
|
9 |
|
10 |
protected static $instance = null;
|
11 |
-
private static $version = '1.0.
|
12 |
private static $page;
|
13 |
private $reg_autoloader = false;
|
14 |
private $options = array();
|
@@ -103,10 +103,6 @@ class IOWD
|
|
103 |
|
104 |
public static function activate()
|
105 |
{
|
106 |
-
if (version_compare(phpversion(), "5.4", '<')) {
|
107 |
-
echo "<div class='error'><p>" . __("Image Optimizer plugin requires PHP 5.4 or higher.", IOWD_PREFIX) . "</p></div>";
|
108 |
-
wp_die();
|
109 |
-
}
|
110 |
//delete_transient('iowd_update_check');
|
111 |
require_once IOWD_DIR_INCLUDES . "/iowd-helper.php";
|
112 |
IOWD_Helper::update_already_used();
|
@@ -485,31 +481,31 @@ class IOWD
|
|
485 |
<div class="tenweb_plugin_logo"></div>
|
486 |
<div class="tenweb_plugin_name"><?php _e("Premium Image Optimizer", IOWD_PREFIX); ?></div>
|
487 |
</div>
|
488 |
-
<div class="
|
489 |
-
|
490 |
-
<
|
491 |
-
class="button"><?php _e("GET FREE FOR 14 DAYS", IOWD_PREFIX); ?></a>
|
492 |
</div>
|
493 |
<div class="tenweb_banner-center wd-clear">
|
494 |
-
<div class="
|
495 |
-
|
496 |
-
<
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
class="pro-plugins"><?php _e("60+ Plugins/Add-ons", IOWD_PREFIX); ?></span><span
|
503 |
-
class="backup"><?php _e("Backup", IOWD_PREFIX); ?></span><span
|
504 |
-
class="seo"><?php _e("SEO", IOWD_PREFIX); ?></span><span
|
505 |
-
class="themes"><?php _e("Premium WP Themes", IOWD_PREFIX); ?></span></div>
|
506 |
-
</div>
|
507 |
</div>
|
508 |
</div>
|
|
|
|
|
|
|
|
|
|
|
509 |
</div>
|
510 |
<?php
|
511 |
}
|
512 |
|
|
|
513 |
public function user_manual()
|
514 |
{
|
515 |
$page = isset($_GET["page"]) ? $_GET["page"] : "";
|
8 |
{
|
9 |
|
10 |
protected static $instance = null;
|
11 |
+
private static $version = '1.0.10';
|
12 |
private static $page;
|
13 |
private $reg_autoloader = false;
|
14 |
private $options = array();
|
103 |
|
104 |
public static function activate()
|
105 |
{
|
|
|
|
|
|
|
|
|
106 |
//delete_transient('iowd_update_check');
|
107 |
require_once IOWD_DIR_INCLUDES . "/iowd-helper.php";
|
108 |
IOWD_Helper::update_already_used();
|
481 |
<div class="tenweb_plugin_logo"></div>
|
482 |
<div class="tenweb_plugin_name"><?php _e("Premium Image Optimizer", IOWD_PREFIX); ?></div>
|
483 |
</div>
|
484 |
+
<div class="tenweb_and"> & </div>
|
485 |
+
<div class="tenweb_desc">
|
486 |
+
<h3 class="tenweb_desc_h3 screen"><?php _e("Other solutions essential for your WordPress site", IOWD_PREFIX); ?></h3>
|
|
|
487 |
</div>
|
488 |
<div class="tenweb_banner-center wd-clear">
|
489 |
+
<div class="tenweb_services">
|
490 |
+
<h3 class="tenweb_desc_h3 screen"><?php _e("Other solutions essential for your WordPress site", IOWD_PREFIX); ?></h3>
|
491 |
+
<h3 class="tenweb_desc_h3 mobile"><?php _e("And other solutions essential for your WordPress site", IOWD_PREFIX); ?></h3>
|
492 |
+
<div><span class="dashboard"><?php _e("Unified Dashboard", IOWD_PREFIX); ?></span><span
|
493 |
+
class="pro-plugins"><?php _e("60+ Plugins/Add-ons", IOWD_PREFIX); ?></span><span
|
494 |
+
class="backup"><?php _e("Backup", IOWD_PREFIX); ?></span><span
|
495 |
+
class="seo"><?php _e("SEO", IOWD_PREFIX); ?></span><span
|
496 |
+
class="themes"><?php _e("Premium WP Themes", IOWD_PREFIX); ?></span></div>
|
|
|
|
|
|
|
|
|
|
|
497 |
</div>
|
498 |
</div>
|
499 |
+
<div class="tenweb_banner-right">
|
500 |
+
<div class="tenweb_banner_logo"></div>
|
501 |
+
<a href="https://10web.io/services/image-optimizer/" target="_blank"
|
502 |
+
class="button"><?php _e("Get free for 14 days", IOWD_PREFIX); ?></a>
|
503 |
+
</div>
|
504 |
</div>
|
505 |
<?php
|
506 |
}
|
507 |
|
508 |
+
|
509 |
public function user_manual()
|
510 |
{
|
511 |
$page = isset($_GET["page"]) ? $_GET["page"] : "";
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
=== Image Optimizer by
|
2 |
-
Contributors: webdorado
|
3 |
Tags: : compress, image, images optimization, performance, photos, lossless, optimize
|
4 |
Requires at least: 3.9
|
5 |
Tested up to: 4.9
|
6 |
Requires PHP: 5.5
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -12,7 +12,7 @@ Image Optimizer WD enables you to resize, compress and optimize PNG, JPG, GIF fi
|
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
[Image Optimizer
|
16 |
[User Manual](http://docs.10web.io/docs/image-optimizer-wd/easy-mode.html)
|
17 |
|
18 |
Do you have a lot of high resolution images on your website? Images on your website can significantly increase your page load time and be frustrating for your site visitors. The optimization of images will accelerate your website, as well as help you save bandwidth and storage space on your website.
|
@@ -28,32 +28,19 @@ The advanced setting of the plugin allow you to convert your images to the file
|
|
28 |
The plugin provides statistics, so you can always know how many images were optimized, when the last optimization occurred and how much space you’ve saved in the result.
|
29 |
|
30 |
|
31 |
-
|
32 |
-
### Features of Image Optimizer WD plugin:
|
33 |
-
|
34 |
-
* SEO friendly Image Optimization
|
35 |
-
* Easy to setup and use
|
36 |
-
* Shrink JPEG, PNG, GIF files
|
37 |
-
* Optimize 1000 images every month
|
38 |
-
* Convert from one image type to another
|
39 |
-
* 2 Modes - conservative, balanced
|
40 |
-
* Lossless and Lossy Conversions without losing image quality or minimal quality loss
|
41 |
-
* Pick exactly which sizes you want to compress (i.e. thumbnail, medium, etc.)
|
42 |
-
* Automatic optimization options
|
43 |
-
* Bulk optimization to optimize more than one image at once
|
44 |
-
* Improve your website’s load times
|
45 |
-
|
46 |
-
Upgrade to [Image Optimizer WD Pro](https://10web.io/services/image-optimizer/) to add features:
|
47 |
|
48 |
* Optimize PDF files
|
49 |
* Schedule optimization to automatically compress images hourly, twice daily or daily
|
50 |
* Optimize up to 250,000 images every month
|
51 |
-
* Maximum lossy/Extreme compression
|
52 |
-
|
53 |
|
54 |
|
55 |
== Changelog ==
|
56 |
|
|
|
|
|
|
|
57 |
= 1.0.9 =
|
58 |
* Removed: Notification
|
59 |
|
@@ -112,9 +99,9 @@ After downloading the ZIP file of the Image Optimizer WD plugin,
|
|
112 |
5. Click "Activate Plugin" button for activating the Image Optimizer WD.
|
113 |
6. If the installation does not succeed, please contact us at [support@10web.io](mailto:support@10web.io).
|
114 |
|
115 |
-
==
|
116 |
|
117 |
-
=
|
118 |
|
119 |
Image Optimizer plugin is created to compress, convert, and reduce the size of large images throughout your website. With just a few steps, you are able to configure and perform optimization for all images. This lets you quickly decrease the amount of used storage space on the hosting of your website and speed up its performance.
|
120 |
|
@@ -122,136 +109,139 @@ The plugin lets you optimize images from directories other than WordPress Media
|
|
122 |
|
123 |
Image Optimizer plugin is simple and straightforward, however, it provides all necessary options to control the optimization process, set up automatic optimization and much more. This user guide will help you configure the plugin and assemble the specific optimization type, which fits your site.
|
124 |
|
|
|
125 |
|
126 |
-
|
127 |
-
|
128 |
-
Click on Image Optimizer menu item from WordPress left menu to start its configuration. To quickly optimize the pictures, without going through advanced settings, you can use Easy Mode of Image Optimizer plugin. Click Image Optimizer menu item to navigate to the plugin’s Settings page.
|
129 |
|
130 |
Easy Mode of image optimization consist of three optimization types:
|
131 |
-
|
|
|
132 |
Reduces image size up to 20%.
|
133 |
Keeps EXIF data of the pictures.
|
134 |
Keeps full-sized images.
|
135 |
|
136 |
-
Balanced
|
137 |
Reduces image size up to 40% (lossy reduction).
|
138 |
Keeps EXIF data of the pictures.
|
139 |
Keeps full-sized images.
|
140 |
|
141 |
-
Extreme
|
142 |
Reduces image size up to 90% (extreme reduction).
|
143 |
Doesn’t keep EXIF data of the pictures.
|
144 |
Doesn’t keep full-sized images.
|
145 |
|
146 |
-
How it works
|
147 |
-
|
148 |
-
In case you wish to automatically optimize uploaded images, turn on Auto Optimize setting.
|
149 |
|
|
|
150 |
|
151 |
-
=
|
152 |
|
153 |
-
You are
|
154 |
|
155 |
-
After clicking Optimize, you can Reoptimize individual images later.
|
156 |
|
157 |
-
Furthermore, you can optimize several images at once. Fistly, make sure to select List View of WordPress Media library, then choose the images you need to optimize. Select Optimize option from Bulk Actions dropdown box, then press Apply
|
158 |
|
159 |
-
|
160 |
|
161 |
-
With its Advanced optimization settings, the plugin lets you configure image optimization and set up what best fits your website. Press Image Optimizer link from left menu, then click on Advanced tab to access its option.
|
162 |
|
163 |
-
As with Easy Mode, the plugin lets you activate Auto Optimize option for newly uploaded images. Don’t forget to hit Save Settings after you make changes in the plugin configuration.
|
164 |
|
165 |
-
|
166 |
|
167 |
-
Keep EXIF data
|
168 |
This setting lets you keep or remove EXIF data of the images. This information is the date photo was taken, exposure, camera lense, shutter speed, etc. It makes the images larger, but in case you are a photographer, it would be best to keep it.
|
169 |
|
170 |
-
Exclude full-size images from EXIF data removal
|
171 |
In case Keep EXIF data option is set to No, you are able to enable this option to prevent EXIF data removal from full-size images.
|
172 |
|
173 |
-
Keep originals
|
174 |
In case this option is enabled, Image Optimizer plugin will create a directory titled /.iowd_orig, where it will store the original versions of optimized images.
|
175 |
|
176 |
-
JPG Optimization Level and PNG Optimization Level
|
177 |
Select the optimization level for JPG and PNG images. You can choose one of the following:
|
178 |
-
No Compression
|
179 |
-
Lossless Compression
|
180 |
-
Lossy Compression
|
181 |
-
Maximum Lossy Compression
|
182 |
|
183 |
-
GIF Optimization Level and PDF Optimization Level
|
184 |
Select the optimization level for GIF images and PDF files. You can choose one of the following:
|
185 |
-
No Compression
|
186 |
-
Lossless Compression
|
187 |
|
188 |
-
=
|
189 |
|
190 |
-
|
191 |
-
|
192 |
-
Enable conversion
|
193 |
-
Turn on this setting in case you wish to convert the format of your website images, to make the site faster.
|
194 |
|
195 |
-
JPG to PNG conversion
|
196 |
PNG uses lossless compression. It is recommended to use for logos, and other pictures with transparent backgrounds. This option removes image metadata and increases CPU usage.
|
197 |
|
198 |
-
JPG to WebP conversion
|
199 |
WebP lets you have 25-34% smaller images and speed up your website. JPG to WebP conversion is lossy, but it will not affect the image quality significantly.
|
200 |
|
201 |
-
PNG to JPG conversion
|
202 |
JPG format is recommended to use for photographs and similar high-resolution images. Since it uses lossy compression, some of the image data is lost when the image is compressed.
|
203 |
|
204 |
-
PNG to WebP conversion
|
205 |
PNG to WebP conversion is lossless. WebP images are 26% smaller in size, than their PNGs. This lets you make your website faster.
|
206 |
|
207 |
-
GIF to PNG conversion
|
208 |
PNG uses lossless compression. It is recommended for logos and pictures with transparent backgrounds. Note, that animated GIFs cannot be converted.
|
209 |
|
210 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
|
212 |
-
|
213 |
-
Enable this setting to automatically optimize new images based on the value of How often the optimization should reoccur setting. It can be set to one of the following options:
|
214 |
-
Hourly
|
215 |
-
Twice daily
|
216 |
-
Daily
|
217 |
|
218 |
-
Exclude full-size images from optimization
|
219 |
Enable this setting, in case you don’t want to optimize full-size images of your website.
|
220 |
|
221 |
-
Resize media full-size images
|
222 |
If Exclude full-size images from optimization is disabled, you are able to activate resizing for full-size images in WordPress Media Library.
|
223 |
|
224 |
-
Resize other directory images
|
225 |
Activate this option to resize the images of other directories, when optimizing them.
|
226 |
|
227 |
-
Other directory images dimensions
|
228 |
In case you choose to resize the image of other directories, use this setting to provide the dimensions, to which they are going to be resized to.
|
229 |
|
230 |
-
Optimize these sizes
|
231 |
This setting lets you select which image sizes to optimize, for instance, medium or large pictures.
|
232 |
|
233 |
-
Don't optimize images smaller than
|
234 |
Use this option to define the lower limit of image size, which will be optimized with Image Optimizer plugin.
|
235 |
|
236 |
-
Don't optimize images larger than
|
237 |
Use this option to define the upper limit of image size, which will be optimized with Image Optimizer plugin.
|
238 |
|
239 |
-
|
240 |
If this option is enabled, the plugin will optimize the images again, in case optimization level has been changed in Image Optimizer settings.
|
241 |
|
242 |
-
|
243 |
|
244 |
-
Image Optimizer plugin lets you optimize images of other directories of your domain with just a few clicks. You will only need to provide Directory Path after pressing Select Directory button. Make sure to press Save Directories button after adding the path.
|
245 |
|
246 |
-
In case you have uploaded new images to the selected directory after adding it to Image Optimizer settings, you need to press Refresh button to add the new pictures to optimization queue.
|
247 |
|
248 |
-
=
|
249 |
|
250 |
-
|
251 |
|
252 |
-
|
253 |
|
254 |
-
|
255 |
|
256 |
-
|
257 |
|
|
1 |
+
=== Image Optimizer by 10web - Image Optimizer and Compression plugin ===
|
2 |
+
Contributors: webdorado,10web
|
3 |
Tags: : compress, image, images optimization, performance, photos, lossless, optimize
|
4 |
Requires at least: 3.9
|
5 |
Tested up to: 4.9
|
6 |
Requires PHP: 5.5
|
7 |
+
Stable tag: 1.0.10
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
[Image Optimizer by 10web](https://10web.io/services/image-optimizer/)
|
16 |
[User Manual](http://docs.10web.io/docs/image-optimizer-wd/easy-mode.html)
|
17 |
|
18 |
Do you have a lot of high resolution images on your website? Images on your website can significantly increase your page load time and be frustrating for your site visitors. The optimization of images will accelerate your website, as well as help you save bandwidth and storage space on your website.
|
28 |
The plugin provides statistics, so you can always know how many images were optimized, when the last optimization occurred and how much space you’ve saved in the result.
|
29 |
|
30 |
|
31 |
+
Upgrade to [Paid version](https://10web.io/services/image-optimizer/) to add features:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
33 |
* Optimize PDF files
|
34 |
* Schedule optimization to automatically compress images hourly, twice daily or daily
|
35 |
* Optimize up to 250,000 images every month
|
36 |
+
* Maximum lossy/Extreme compression
|
|
|
37 |
|
38 |
|
39 |
== Changelog ==
|
40 |
|
41 |
+
= 1.0.10 =
|
42 |
+
* Changed: Check php version
|
43 |
+
|
44 |
= 1.0.9 =
|
45 |
* Removed: Notification
|
46 |
|
99 |
5. Click "Activate Plugin" button for activating the Image Optimizer WD.
|
100 |
6. If the installation does not succeed, please contact us at [support@10web.io](mailto:support@10web.io).
|
101 |
|
102 |
+
== Frequently Asked Questions ==
|
103 |
|
104 |
+
= What can I achieve with Image Optimizer plugin? =
|
105 |
|
106 |
Image Optimizer plugin is created to compress, convert, and reduce the size of large images throughout your website. With just a few steps, you are able to configure and perform optimization for all images. This lets you quickly decrease the amount of used storage space on the hosting of your website and speed up its performance.
|
107 |
|
109 |
|
110 |
Image Optimizer plugin is simple and straightforward, however, it provides all necessary options to control the optimization process, set up automatic optimization and much more. This user guide will help you configure the plugin and assemble the specific optimization type, which fits your site.
|
111 |
|
112 |
+
= How can I quickly optimize images? =
|
113 |
|
114 |
+
Click on Image Optimizer menu item from WordPress left menu to start its configuration. To quickly optimize the pictures, without going through advanced settings, you can use **Easy Mode** of Image Optimizer plugin. Click Image Optimizer menu item to navigate to the plugin’s Settings page.
|
|
|
|
|
115 |
|
116 |
Easy Mode of image optimization consist of three optimization types:
|
117 |
+
|
118 |
+
**Conservative**
|
119 |
Reduces image size up to 20%.
|
120 |
Keeps EXIF data of the pictures.
|
121 |
Keeps full-sized images.
|
122 |
|
123 |
+
**Balanced**
|
124 |
Reduces image size up to 40% (lossy reduction).
|
125 |
Keeps EXIF data of the pictures.
|
126 |
Keeps full-sized images.
|
127 |
|
128 |
+
**Extreme**
|
129 |
Reduces image size up to 90% (extreme reduction).
|
130 |
Doesn’t keep EXIF data of the pictures.
|
131 |
Doesn’t keep full-sized images.
|
132 |
|
133 |
+
**How it works?** link in this section will help you compare optimized versions of images with all three types, and choose the best one for your photos. Once you have selected the type, press Optimize Now (Bulk Optimizing) button, and the plugin will start the image compression.
|
|
|
|
|
134 |
|
135 |
+
In case you wish to automatically optimize uploaded images, turn on **Auto Optimize** setting.
|
136 |
|
137 |
+
= Is it possible to optimize individual images? =
|
138 |
|
139 |
+
You are able to optimize individual images from WordPress Media Library. Press **Media Library** link to navigate there, then open the image you need to optimize. You will find **Optimize** button at the bottom of right pane.
|
140 |
|
141 |
+
After clicking Optimize, you can **Reoptimize** individual images later.
|
142 |
|
143 |
+
Furthermore, you can optimize several images at once. Fistly, make sure to select **List View** of WordPress Media library, then choose the images you need to optimize. Select **Optimize** option from **Bulk Actions** dropdown box, then press **Apply.**
|
144 |
|
145 |
+
= Are there any other ways for image optimization? =
|
146 |
|
147 |
+
With its **Advanced optimization** settings, the plugin lets you configure image optimization and set up what best fits your website. Press **Image Optimizer** link from left menu, then click on **Advanced** tab to access its option.
|
148 |
|
149 |
+
As with Easy Mode, the plugin lets you activate **Auto Optimize** option for newly uploaded images. Don’t forget to hit **Save Settings** after you make changes in the plugin configuration.
|
150 |
|
151 |
+
You can modify the following settings from General section:
|
152 |
|
153 |
+
**Keep EXIF data**
|
154 |
This setting lets you keep or remove EXIF data of the images. This information is the date photo was taken, exposure, camera lense, shutter speed, etc. It makes the images larger, but in case you are a photographer, it would be best to keep it.
|
155 |
|
156 |
+
**Exclude full-size images from EXIF data removal**
|
157 |
In case Keep EXIF data option is set to No, you are able to enable this option to prevent EXIF data removal from full-size images.
|
158 |
|
159 |
+
**Keep originals**
|
160 |
In case this option is enabled, Image Optimizer plugin will create a directory titled /.iowd_orig, where it will store the original versions of optimized images.
|
161 |
|
162 |
+
**JPG Optimization Level and PNG Optimization Level**
|
163 |
Select the optimization level for JPG and PNG images. You can choose one of the following:
|
164 |
+
* No Compression
|
165 |
+
* Lossless Compression
|
166 |
+
* Lossy Compression
|
167 |
+
* Maximum Lossy Compression
|
168 |
|
169 |
+
**GIF Optimization Level and PDF Optimization Level**
|
170 |
Select the optimization level for GIF images and PDF files. You can choose one of the following:
|
171 |
+
* No Compression
|
172 |
+
* Lossless Compression
|
173 |
|
174 |
+
= Can I convert images while optimizing them? =
|
175 |
|
176 |
+
Turn on **Enable conversion** setting from Advanced Optimization options, in case you wish to convert the format of your website images, to make the site faster.
|
|
|
|
|
|
|
177 |
|
178 |
+
**JPG to PNG conversion**
|
179 |
PNG uses lossless compression. It is recommended to use for logos, and other pictures with transparent backgrounds. This option removes image metadata and increases CPU usage.
|
180 |
|
181 |
+
**JPG to WebP conversion**
|
182 |
WebP lets you have 25-34% smaller images and speed up your website. JPG to WebP conversion is lossy, but it will not affect the image quality significantly.
|
183 |
|
184 |
+
**PNG to JPG conversion**
|
185 |
JPG format is recommended to use for photographs and similar high-resolution images. Since it uses lossy compression, some of the image data is lost when the image is compressed.
|
186 |
|
187 |
+
**PNG to WebP conversion**
|
188 |
PNG to WebP conversion is lossless. WebP images are 26% smaller in size, than their PNGs. This lets you make your website faster.
|
189 |
|
190 |
+
**GIF to PNG conversion**
|
191 |
PNG uses lossless compression. It is recommended for logos and pictures with transparent backgrounds. Note, that animated GIFs cannot be converted.
|
192 |
|
193 |
+
Warning! In case the images are used in other plugins, problems may occur after converting them, if these plugins use the absolute URLs of the images. There will be no issues in case they use the media IDs of the pictures.
|
194 |
+
|
195 |
+
= Is it possible to schedule image optimization? =
|
196 |
+
|
197 |
+
Enable **Scheduled optimization** setting to automatically optimize new images based on the value of How often the optimization should reoccur setting. It can be set to one of the following options:
|
198 |
+
|
199 |
+
* Hourly
|
200 |
+
* Twice daily
|
201 |
+
* Daily
|
202 |
+
|
203 |
+
= Can I choose which image sizes to optimize? =
|
204 |
|
205 |
+
You can do that with the following settings:
|
|
|
|
|
|
|
|
|
206 |
|
207 |
+
**Exclude full-size images from optimization**
|
208 |
Enable this setting, in case you don’t want to optimize full-size images of your website.
|
209 |
|
210 |
+
**Resize media full-size images**
|
211 |
If Exclude full-size images from optimization is disabled, you are able to activate resizing for full-size images in WordPress Media Library.
|
212 |
|
213 |
+
**Resize other directory images**
|
214 |
Activate this option to resize the images of other directories, when optimizing them.
|
215 |
|
216 |
+
**Other directory images dimensions**
|
217 |
In case you choose to resize the image of other directories, use this setting to provide the dimensions, to which they are going to be resized to.
|
218 |
|
219 |
+
**Optimize these sizes**
|
220 |
This setting lets you select which image sizes to optimize, for instance, medium or large pictures.
|
221 |
|
222 |
+
**Don't optimize images smaller than**
|
223 |
Use this option to define the lower limit of image size, which will be optimized with Image Optimizer plugin.
|
224 |
|
225 |
+
**Don't optimize images larger than**
|
226 |
Use this option to define the upper limit of image size, which will be optimized with Image Optimizer plugin.
|
227 |
|
228 |
+
**Optimize once more, if optimization level has changed**
|
229 |
If this option is enabled, the plugin will optimize the images again, in case optimization level has been changed in Image Optimizer settings.
|
230 |
|
231 |
+
= Can the plugin optimize images from other directories? =
|
232 |
|
233 |
+
Image Optimizer plugin lets you optimize images of other directories of your domain with just a few clicks. You will only need to provide **Directory Path** after pressing **Select Directory** button. Make sure to press **Save Directories** button after adding the path.
|
234 |
|
235 |
+
In case you have uploaded new images to the selected directory after adding it to Image Optimizer settings, you need to press **Refresh** button to add the new pictures to optimization queue.
|
236 |
|
237 |
+
= Where can I check stats of image optimization? =
|
238 |
|
239 |
+
The following two sections of the plugin allow you to review the statistics and reports about optimization:
|
240 |
|
241 |
+
**Statistics**
|
242 |
|
243 |
+
To let you quickly check the optimization results and be posted about latest optimization process, the plugin adds **Statistics** section to Image Optimizer settings. You can check the reduction size in WordPress Media Library or other directories, see how many images were optimized, and more.
|
244 |
|
245 |
+
**Report**
|
246 |
|
247 |
+
To see long-term results and the list of optimized images, you can use **Report** dashboard. Go to **Image Optimizer > Report** page to access the list. This dashboard lets you filter the images by name, date, size or type. You can also clear the optimization history of each individual image, or reset the report by pressing **Clear History** button.
|
wd/assets/css/overview.css
CHANGED
@@ -43,7 +43,7 @@
|
|
43 |
font-size: 24px;
|
44 |
letter-spacing: 1px;
|
45 |
margin:0;
|
46 |
-
padding: 0 0 20px;
|
47 |
line-height: 1.4em;
|
48 |
}
|
49 |
h3.more_features {
|
@@ -97,7 +97,7 @@ img.plugin_logo {
|
|
97 |
width:1190px;
|
98 |
max-width:100%;
|
99 |
margin:0 auto;
|
100 |
-
text-align:center;
|
101 |
box-sizing: border-box;
|
102 |
-webkit-box-sizing: border-box;
|
103 |
-moz-box-sizing: border-box;
|
@@ -132,7 +132,7 @@ font-size: 15px;
|
|
132 |
background-size: 191px;
|
133 |
background-position: 0px -55px;
|
134 |
width: 68px;
|
135 |
-
height: 51px;
|
136 |
margin: 0 auto 35px;
|
137 |
}
|
138 |
.tenweb_overview .plan_feature.pro_plugins .logo {
|
@@ -234,7 +234,7 @@ background-size: 217px;
|
|
234 |
line-height: 1.5;
|
235 |
padding-right: 10px;
|
236 |
letter-spacing: 0;
|
237 |
-
margin-top: 2px;
|
238 |
width: calc(100% - 180px);
|
239 |
display:table-cell;
|
240 |
vertical-align:middle;
|
@@ -306,12 +306,12 @@ background-size: 217px;
|
|
306 |
}
|
307 |
.tenweb_overview .container{
|
308 |
width:1600px;
|
309 |
-
}
|
310 |
.tenweb_overview .inline-block.header_text{
|
311 |
font-size: 19px;
|
312 |
line-height: 1.2;
|
313 |
padding-right: 18px;
|
314 |
-
letter-spacing: .8px;
|
315 |
width: calc(100% - 193px);
|
316 |
margin-top: 0;
|
317 |
}
|
@@ -398,10 +398,10 @@ background-size: 217px;
|
|
398 |
margin-top: 10px;
|
399 |
width: 100%;
|
400 |
clear:both;
|
401 |
-
}
|
402 |
.tenweb_overview .tenweb_header .container_top a.button {
|
403 |
display:inline-block;
|
404 |
-
}
|
405 |
.tenweb_overview .tenweb_logo a div {
|
406 |
height: 37px;
|
407 |
background-size: 171px;
|
43 |
font-size: 24px;
|
44 |
letter-spacing: 1px;
|
45 |
margin:0;
|
46 |
+
padding: 0 0 20px;
|
47 |
line-height: 1.4em;
|
48 |
}
|
49 |
h3.more_features {
|
97 |
width:1190px;
|
98 |
max-width:100%;
|
99 |
margin:0 auto;
|
100 |
+
text-align:center;
|
101 |
box-sizing: border-box;
|
102 |
-webkit-box-sizing: border-box;
|
103 |
-moz-box-sizing: border-box;
|
132 |
background-size: 191px;
|
133 |
background-position: 0px -55px;
|
134 |
width: 68px;
|
135 |
+
height: 51px;
|
136 |
margin: 0 auto 35px;
|
137 |
}
|
138 |
.tenweb_overview .plan_feature.pro_plugins .logo {
|
234 |
line-height: 1.5;
|
235 |
padding-right: 10px;
|
236 |
letter-spacing: 0;
|
237 |
+
margin-top: 2px;
|
238 |
width: calc(100% - 180px);
|
239 |
display:table-cell;
|
240 |
vertical-align:middle;
|
306 |
}
|
307 |
.tenweb_overview .container{
|
308 |
width:1600px;
|
309 |
+
}
|
310 |
.tenweb_overview .inline-block.header_text{
|
311 |
font-size: 19px;
|
312 |
line-height: 1.2;
|
313 |
padding-right: 18px;
|
314 |
+
letter-spacing: .8px;
|
315 |
width: calc(100% - 193px);
|
316 |
margin-top: 0;
|
317 |
}
|
398 |
margin-top: 10px;
|
399 |
width: 100%;
|
400 |
clear:both;
|
401 |
+
}
|
402 |
.tenweb_overview .tenweb_header .container_top a.button {
|
403 |
display:inline-block;
|
404 |
+
}
|
405 |
.tenweb_overview .tenweb_logo a div {
|
406 |
height: 37px;
|
407 |
background-size: 171px;
|