Skip to content

Commit

Permalink
Gulp imagemin re-integration, usage to reduce overall payload size
Browse files Browse the repository at this point in the history
  • Loading branch information
Jac21 committed Nov 23, 2024
1 parent b329d34 commit 1c34846
Show file tree
Hide file tree
Showing 93 changed files with 3,704 additions and 205 deletions.
Binary file modified dist/images/developer/developer-header.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/developer/etude/etude.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/headshot-photo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/DSC_1201.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/DSC_204160025.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/DSC_4110.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/DSC_4516.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/DSC_4705.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/DSC_63960011.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/Shoots/Japan/000070700009.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/Shoots/Japan/000070700010.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/Shoots/Japan/000070710015.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/Shoots/Japan/000070710021.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/Shoots/Japan/000070710022.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/Shoots/Japan/000070720025.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/Shoots/Japan/000070720026.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/Shoots/Japan/000070740027.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/Shoots/Japan/000070740031.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/Shoots/Japan/000070750002.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/Shoots/Japan/000070750004.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/Shoots/Japan/000070750028.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/Shoots/Japan/000070750031.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/Shoots/Japan/000070750033.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/Shoots/Japan/000070750034.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/Shoots/Japan/000070760008.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/images/photographer/photos/Shoots/Japan/000070760026.jpg
Binary file modified dist/images/photographer/photos/Shoots/Japan/000070760030.jpg
Binary file modified dist/images/photographer/photos/Shoots/Japan/000070770027.jpg
Binary file modified dist/images/photographer/photos/Shoots/Puerto Rico/000295350022.jpg
100644 → 100755
Binary file modified dist/images/photographer/photos/Shoots/Puerto Rico/000295350047.jpg
100644 → 100755
Binary file modified dist/images/photographer/photos/Shoots/Puerto Rico/000295350065.jpg
100644 → 100755
Binary file modified dist/images/photographer/photos/Shoots/Puerto Rico/000295350073.jpg
100644 → 100755
Binary file modified dist/images/photographer/photos/Shoots/Puerto Rico/0009797_0009797-R1-E007.jpg
100644 → 100755
Binary file modified dist/images/photographer/photos/Shoots/Puerto Rico/0009797_0009797-R1-E010.jpg
100644 → 100755
Binary file modified dist/images/photographer/photos/Shoots/Puerto Rico/0009797_0009797-R1-E012.jpg
100644 → 100755
Binary file modified dist/images/photographer/photos/Shoots/Puerto Rico/0009797_0009797-R1-E014.jpg
100644 → 100755
Binary file modified dist/images/photographer/photos/Shoots/Puerto Rico/0009797_0009797-R1-E019.jpg
100644 → 100755
Binary file modified dist/images/photographer/photos/Shoots/Puerto Rico/0009797_0009797-R1-E021.jpg
100644 → 100755
Binary file modified dist/images/photographer/photos/Shoots/Puerto Rico/0009797_0009797-R1-E029.jpg
100644 → 100755
Binary file modified dist/images/photographer/photos/Shoots/Taiwan 2024/AMSEE6168.png
Binary file modified dist/images/photographer/photos/Shoots/Taiwan 2024/BEHBE8326.png
Binary file modified dist/images/photographer/photos/Shoots/Taiwan 2024/BFUNE1748.png
Binary file modified dist/images/photographer/photos/Shoots/Taiwan 2024/EQYGE9476.png
Binary file modified dist/images/photographer/photos/Shoots/Taiwan 2024/FUTHE2223.png
Binary file modified dist/images/photographer/photos/Shoots/Taiwan 2024/ICNSE5604.png
Binary file modified dist/images/photographer/photos/Shoots/Taiwan 2024/METEE2949.png
Binary file modified dist/images/photographer/photos/Shoots/Taiwan 2024/MUUDE4708.png
Binary file modified dist/images/photographer/photos/Shoots/Taiwan 2024/NKQNE6037.png
Binary file modified dist/images/photographer/photos/Shoots/Taiwan 2024/NSEHE5936.png
Binary file modified dist/images/photographer/photos/Shoots/Taiwan 2024/WWNRE9164.png
Binary file modified dist/images/photographer/photos/Shoots/Taiwan 2024/WXUVE0505.png
Binary file modified dist/images/photographer/photos/Shoots/Vera/DSC_1958.jpg
Binary file modified dist/images/photographer/photos/Shoots/Vera/DSC_1999.jpg
Binary file modified dist/images/photographer/photos/Shoots/Vera/DSC_2013.jpg
Binary file modified dist/images/photographer/photos/Shoots/Vera/DSC_2016.jpg
Binary file modified dist/images/photographer/photos/Shoots/Vera/DSC_2038.jpg
Binary file modified dist/images/photographer/photos/Shoots/Vera/Vera1200.jpg
34 changes: 26 additions & 8 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
"use strict";

var gulp = require("gulp"); // gulping!
var browserSync = require("browser-sync"); // sync browser with code changes!
var lint = require("gulp-eslint"); // lint JS files!
var rename = require("gulp-rename"); // renaming JS!
var uncss = require("gulp-uncss"); // shedding CSS!
var crass = require("gulp-crass"); // optimizing CSS!
var concat = require("gulp-concat"); // concat helper!
var historyApiFallback = require("connect-history-api-fallback"); // local development helper!
import gulp from "gulp"; // gulping!
import browserSync from "browser-sync"; // sync browser with code changes!
import lint from "gulp-eslint"; // lint JS files!
import imagemin, { mozjpeg, optipng } from "gulp-imagemin"; // optimizing images!
import rename from "gulp-rename"; // renaming JS!
import uncss from "gulp-uncss"; // shedding CSS!
import crass from "gulp-crass"; // optimizing CSS!
import concat from "gulp-concat"; // concat helper!
import historyApiFallback from "connect-history-api-fallback"; // local development helper!

// configuration object
var config = {
Expand Down Expand Up @@ -68,6 +69,22 @@ gulp.task("lib-scripts", function () {
.pipe(gulp.dest(destConfig.paths.libJavascript));
});

// image task
gulp.task("images", function () {
return gulp
.src(config.paths.images, { encoding: false })
.pipe(
imagemin([
mozjpeg({
quality: 75,
progressive: true,
}),
optipng({ optimizationLevel: 5 }),
])
)
.pipe(gulp.dest(destConfig.paths.images));
});

// Scripts task
gulp.task("scripts", gulp.series("lib-scripts"), function () {
return gulp
Expand Down Expand Up @@ -122,6 +139,7 @@ gulp.task("watch", function () {
gulp.watch(config.paths.applicationJavascript, gulp.series("lint"));
gulp.watch(config.paths.applicationJavascript, gulp.series("scripts"));
gulp.watch(config.paths.libJavascript, gulp.series("lib-scripts"));
gulp.watch(config.paths.images, gulp.series("images"));
gulp.watch(config.paths.styles, gulp.series("crass"));
});

Expand Down
Loading

0 comments on commit 1c34846

Please sign in to comment.