Skip to content

Commit

Permalink
ver 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierCanon committed Feb 12, 2020
1 parent bfbee35 commit 1613385
Show file tree
Hide file tree
Showing 21 changed files with 1,125 additions and 1,002 deletions.
36 changes: 24 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,39 @@
# SOCIAL OFFICE PNGLUTINATOR #

Social Office is a set free and open source tools for Social Media, Social Managers, Community Managers, by Javier Cañon (http://www.javiercanon.com) (http://www.javiercañon.com).
Social Office is a set free and open source tools for Social Media, Social Managers, Community Managers, by [Javier Cañon](https://www.javiercanon.com).

How does it work?
Excellent question! When you process a PNG (Portable Network Graphics) file, similar colors in your image are combined. This technique is called “quantization”. By reducing the number of colors, 24-bit PNG files can be converted to much smaller 8-bit indexed color images. All unnecessary metadata is stripped too. The result: better PNG files with 100% support for transparency.

In the average image, the file size is reduced by 50% - 70%.
You can’t spot the difference either! Use the optimized image to save bandwidth and loading time and your website visitors will thank you, and you BOOST YOUR SEO (search engine rankings).

![pnglutinaitor](docs/img/pnglutinaitor-screenshoot-2.png)

## What does it Do? ##

* In the average image, the file size is reduced by 50% - 70%.
* You can’t spot the difference either! Use the optimized image to save bandwidth and loading time and your website visitors will thank you, and you BOOST YOUR SEO (search engine rankings).


## Philosophy of Javier Cañon
* KISS by design and programming. An acronym for "keep it simple, stupid" or "keep it stupid simple", is a design principle. The KISS principle states that most systems work best if they are kept simple rather than made complicated; therefore, simplicity should be a key goal in design, and unnecessary complexity should be avoided. Variations on the phrase include: "Keep it simple, silly", "keep it short and simple", "keep it simple and straightforward", "keep it small and simple", or "keep it stupid simple".

* Select the best tools for the job, use tools that take less time to finish the job.
* Productivity over complexity and avoid unnecessary complexity for elegant or beauty code.

* Computers are machines, more powerful every year, give them hard work, concentrate on being productive.


## Requeriments? ##

Windows 10.
.Net Framework 4.7.2.
.Net Framework 4.8.

## Community ##

* Installers (https://github.com/JavierCanon/Social-Office-PNGlutinaitor/releases)
* Website, videos, photos, docs, etc. (https://www.facebook.com/SocialOfficePNGlutinaitor/)
* Group (https://www.facebook.com/groups/socialoffice/)
* Wiki (https://github.com/JavierCanon/Social-Office-PNGlutinaitor/wiki)
* Issue - Bug Traking (https://github.com/JavierCanon/Social-Office-PNGlutinaitor/issues)
* [Installers](https://github.com/JavierCanon/Social-Office-PNGlutinaitor/releases)
* [Website, videos, photos, docs, etc.](https://www.facebook.com/groups/social.office.scrm/)
* [Group](https://www.facebook.com/groups/social.office.scrm/)
* [Wiki](https://github.com/JavierCanon/Social-Office-PNGlutinaitor/wiki)
* [Issue - Bug Traking](https://github.com/JavierCanon/Social-Office-PNGlutinaitor/issues)

## pngquant ##
pngquant is a command-line utility and a library for lossy compression of PNG images.
Expand Down Expand Up @@ -66,9 +78,9 @@ Things I would like to add:
## Authors ##

* pngquant is developed by Kornel Lesiński and contributors. It's based on code by Greg Roelofs and Jef Poskanzer.
* Some code from NikkiDelRosso https://github.com/NikkiDelRosso/PNGoo
* Some code from [NikkiDelRosso](https://github.com/NikkiDelRosso/PNGoo)
* Jake Archibald 2009, for PNGoo
* Social Office PNGlutinaitor by Javier Cañon (http://www.javiercanon.com) (http://www.javiercañon.com)
* Social Office PNGlutinaitor by [Javier Cañon](https://www.javiercanon.com)

## Bugs ##
Please submit bug reports or feature requests on GitHub.
Expand Down
Binary file added lib/pngquant-windows.zip
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2017 Javier Cañon (www.javiercanon.com) (www.javiercañon.com)
// GNU AFFERO GENERAL PUBLIC LICENSE version 3 Copyright (c) 2017 Javier Cañon | https://www.javiercanon.com
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2017 Javier Cañon (www.javiercanon.com) (www.javiercañon.com)
// GNU AFFERO GENERAL PUBLIC LICENSE version 3 Copyright (c) 2017 Javier Cañon | https://www.javiercanon.com
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2017 Javier Cañon (www.javiercanon.com) (www.javiercañon.com)
// GNU AFFERO GENERAL PUBLIC LICENSE version 3 Copyright (c) 2017 Javier Cañon | https://www.javiercanon.com
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2017 Javier Cañon (www.javiercanon.com) (www.javiercañon.com)
// GNU AFFERO GENERAL PUBLIC LICENSE version 3 Copyright (c) 2017 Javier Cañon | https://www.javiercanon.com
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
Expand Down
2 changes: 1 addition & 1 deletion src/PNGlutinator.Desktop/Compressor/PNGCompressor.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2017 Javier Cañon (www.javiercanon.com) (www.javiercañon.com)
// GNU AFFERO GENERAL PUBLIC LICENSE version 3 Copyright (c) 2017 Javier Cañon | https://www.javiercanon.com
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
Expand Down
6 changes: 5 additions & 1 deletion src/PNGlutinator.Desktop/Compressor/PNGQuant.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2017 Javier Cañon (www.javiercanon.com) (www.javiercañon.com)
// GNU AFFERO GENERAL PUBLIC LICENSE version 3 Copyright (c) 2017 Javier Cañon | https://www.javiercanon.com
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
Expand Down Expand Up @@ -26,6 +26,7 @@

namespace PNGlutinator.Compressor
{

class PNGQuant : PNGCompressor
{
/// <summary>
Expand All @@ -50,15 +51,18 @@ public override void Start()
Process cmdProcess = this.createProcess();
string tmpFile = this.createTmpOriginalFile();
string outputSuffix = "-fs8.png";

if (CompressionSettings.OrderedDither)
{
cmdProcess.StartInfo.Arguments += " -ordered";
outputSuffix = "-or8.png";
}

cmdProcess.StartInfo.Arguments += " " + CompressionSettings.Colours;
cmdProcess.StartInfo.Arguments += " \"" + tmpFile.Replace("\"", @"\") + "\"";
cmdProcess.Start();
cmdProcess.WaitForExit();

// build path for compressed file
string compressedFilePath = tmpFile + outputSuffix;
// pick up the compressed file
Expand Down
8 changes: 1 addition & 7 deletions src/PNGlutinator.Desktop/PNGlutinator.Desktop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>PNGlutinator</RootNamespace>
<AssemblyName>PNGlutinator.Desktop</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
Expand Down Expand Up @@ -186,12 +186,6 @@
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<Content Include="libs\pngcrush_1_8_11_w32.exe">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="libs\pngcrush_1_8_11_w64.exe">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="libs\pngquanti.exe">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
Expand Down
6 changes: 3 additions & 3 deletions src/PNGlutinator.Desktop/PNGlutinator.Desktop.licenseheader
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extensions: designer.cs generated.cs
extensions: .cs .cpp .h
// Copyright (c) 2017 Javier Cañon (www.javiercanon.com) (www.javiercañon.com)
// GNU AFFERO GENERAL PUBLIC LICENSE version 3 Copyright (c) 2017 Javier Cañon | https://www.javiercanon.com
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
Expand All @@ -21,11 +21,11 @@ extensions: .cs .cpp .h
// IN THE SOFTWARE.
extensions: .aspx .ascx
<%--
Copyright (c) 2017 Javier Cañon (www.javiercanon.com)
GNU AFFERO GENERAL PUBLIC LICENSE version 3 Copyright (c) 2017 Javier Cañon | https://www.javiercanon.com
--%>
extensions: .vb
'Sample license text.
extensions: .xml .config .xsd .html
<!--
Copyright (c) 2017 Javier Cañon (www.javiercanon.com)
GNU AFFERO GENERAL PUBLIC LICENSE version 3 Copyright (c) 2017 Javier Cañon | https://www.javiercanon.com
-->
2 changes: 1 addition & 1 deletion src/PNGlutinator.Desktop/Presenters/CompressionSettings.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2017 Javier Cañon (www.javiercanon.com) (www.javiercañon.com)
// GNU AFFERO GENERAL PUBLIC LICENSE version 3 Copyright (c) 2017 Javier Cañon | https://www.javiercanon.com
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
Expand Down
2 changes: 1 addition & 1 deletion src/PNGlutinator.Desktop/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2017 Javier Cañon (www.javiercanon.com) (www.javiercañon.com)
// GNU AFFERO GENERAL PUBLIC LICENSE version 3 Copyright (c) 2017 Javier Cañon | https://www.javiercanon.com
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
Expand Down
8 changes: 4 additions & 4 deletions src/PNGlutinator.Desktop/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2017 Javier Cañon (www.javiercanon.com) (www.javiercañon.com)
// GNU AFFERO GENERAL PUBLIC LICENSE version 3 Copyright (c) 2017 Javier Cañon | https://www.javiercanon.com
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
Expand Down Expand Up @@ -27,7 +27,7 @@
// associated with an assembly.
[assembly: AssemblyTitle("Social Office PNGlutinator")]
[assembly: AssemblyProduct("Social Office PNGlutinator")]
[assembly: AssemblyCopyright("Copyright © Javier Cañon")]
[assembly: AssemblyCopyright("Copyright © Javier Cañon | www.javiercanon.com")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
Expand All @@ -47,8 +47,8 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.2.0.*")]
[assembly: AssemblyFileVersion("1.2.0.0")]
[assembly: NeutralResourcesLanguage("")]
[assembly: AssemblyDescription("PNG Compressor")]
[assembly: AssemblyCompany("Javier Cañon")]
Expand Down
2 changes: 1 addition & 1 deletion src/PNGlutinator.Desktop/Properties/Resources.Designer.cs

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

2 changes: 1 addition & 1 deletion src/PNGlutinator.Desktop/Views/ColourSettings.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2017 Javier Cañon (www.javiercanon.com) (www.javiercañon.com)
// GNU AFFERO GENERAL PUBLIC LICENSE version 3 Copyright (c) 2017 Javier Cañon | https://www.javiercanon.com
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2017 Javier Cañon (www.javiercanon.com) (www.javiercañon.com)
// GNU AFFERO GENERAL PUBLIC LICENSE version 3 Copyright (c) 2017 Javier Cañon | https://www.javiercanon.com
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
Expand Down
Loading

0 comments on commit 1613385

Please sign in to comment.