Skip to content

Commit

Permalink
Merge pull request #19 from stefansl/dev
Browse files Browse the repository at this point in the history
Merge Dev
  • Loading branch information
stefansl authored Feb 17, 2018
2 parents 113e7af + 78d4430 commit d1b6f51
Show file tree
Hide file tree
Showing 17 changed files with 4,667 additions and 7,546 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ dist/
script.sh
/Mac_Distribution_Provisioning_Profiles_.provisionprofile
!/build/
/electron-builder.yml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Image Shrinker

SVGO-GUI is not maintained anymore. So I decided to rebuild it with Electron.
Image Shrinker (prev. SVG Shrinker) is a tool to minify images and graphics using [pngquant](https://pngquant.org/), [mozjpg](https://github.com/mozilla/mozjpeg) and [SVGgo](https://github.com/svg/svgo).
Image Shrinker (prev. SVG Shrinker) is a tool to minify images and graphics using [pngquant](https://pngquant.org/), [mozjpg](https://github.com/mozilla/mozjpeg) and [SVGO](https://github.com/svg/svgo).

![Screenshot Imageshrinker](https://raw.githubusercontent.com/stefansl/image-shrinker/dev/assets/img/screen.min.png "Screenshot Image Shrinker")

Expand Down
24 changes: 24 additions & 0 deletions assets/css/imageshrinker.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/imageshrinker.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions assets/css/imageshrinker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
$black: #111;
$white: #fefefe;
$primary-color: #46c2fe;
$secondary-color: #d86550;

:root {
--main-bg-color: #111;
Expand Down Expand Up @@ -69,6 +70,7 @@ body {

#dragzone {
cursor: pointer;
position: relative;
opacity: .5;
border: 2px dashed var(--main-bg-color);
padding: 1em;
Expand All @@ -79,6 +81,23 @@ body {
&.drag-active {
opacity: .9;
}
&::after {
display: block;
width: 100%;
height: 100%;
position: absolute;
content: " ";
opacity: 0;
transition: all .4s ease-out;
background-color: transparent;
left: 0;
top: 0;
}
&.is--processing::after {
background: rgba($secondary-color,.5) url("../img/tail-spin.min.svg") no-repeat center center;
background-size: 15%;
opacity: 1;
}
&:hover {
opacity: .75;
}
Expand Down Expand Up @@ -215,4 +234,14 @@ body {
.btn.btn-sm {
font-size: .5rem;

}

#overlay {
width: 100vw;
height: 100vh;
position: absolute;
top: 0;
left: 0;
z-index: 10;
//background-color: rgba($white, .5);
}
2 changes: 1 addition & 1 deletion assets/css/spectre.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@

// Utility classes
@import "../../node_modules/spectre.css/src/animations";
@import "../../node_modules/spectre.css/src/utilities";
@import "../../node_modules/spectre.css/src/utilities";
1 change: 1 addition & 0 deletions assets/img/rings.min.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions assets/img/rings.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/img/tail-spin.min.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions assets/img/tail-spin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions extend.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>png</string>
<string>jpg</string>
<string>jpeg</string>
<string>svg</string>
</array>
<key>CFBundleTypeName</key>
<string>png</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleTypeIconFile</key>
<string>Image Shrinker.icns</string>
</dict>
</array>
15 changes: 14 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<link rel="stylesheet" href="assets/css/imageshrinker.css">
</head>
<body>

<div class="wrapper">

<i class="icon icon-more-horiz icon-2x float-right d-block" id="btnOpenSettings"></i>
Expand Down Expand Up @@ -57,6 +58,19 @@ <h3>Settings</h3>
</div>
</div>

<div class="columns">
<div class="column col-9">
Add .min suffix to shrinked files
</div>
<div class="column col-3 ">
<label class="form-switch float-right">
<input id="suffix" name="suffix" type="checkbox" checked="checked">
<i class="form-icon"></i>
</label>

</div>
</div>

<div class="columns">
<div class="column col-9">
Clear result list, when shrinking new images
Expand All @@ -66,7 +80,6 @@ <h3>Settings</h3>
<input id="clearlist" name="clearlist" type="checkbox">
<i class="form-icon"></i>
</label>

</div>
</div>
</div>
Expand Down
Loading

0 comments on commit d1b6f51

Please sign in to comment.