Git Product home page Git Product logo

isabella232 / imageoptimizationweb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from salesforce/imageoptimizationweb

0.0 0.0 0.0 106 KB

ImageOptimizationWeb is a web based version of the ImageOptimization java batch code use to optimize images that are uploaded to it. It does the optimizations using a process is called lossless compression.

License: Other

JavaScript 23.52% Java 61.50% CSS 8.50% HTML 6.48%

imageoptimizationweb's Introduction

ImageOptimizationWeb - Website for optimizing images

Copyright (c) 2014, Salesforce.com. All rights reserved.

Created by

Summary

ImageOptimizationWeb is a web based version of the ImageOptimization java batch code use to optimize images that are uploaded to it. It does the optimizations using a process is called lossless compression.

Apart from optimizing an image, it also supports a few other things

  • Converting image types, GIFs to PNGs, if it will make the image smaller.
  • Create a Chrome specific verison, WebP

When optimizaing or converting an image, depending on the size it will take while for the image to be compressed. The process was designed for the smallest file size not the diration of optimization. The app is also highly distributed and will take advantage of multiple CPU cores if more than 1 image is being compressed at a time. Lastly it will involve a fare amount of disk I/O because of the optimizing it is doing.

Installation

NOTE: Currently this code has only been tested on Linux due to binary dependancies in the ImageOptimization project this code depends on.

See the Image Optimization installation instructions for the steps needed to download and compile the binaries.

The file system path of the image optimization binaries needs to set in the the sping-servlet.xml file as the constructor argument for the "imageOptimizationService" bean.

<bean id="imageOptimizationService" class="com.salesforce.perfeng.uiperf.imageoptimization.service.ImageOptimizationService" factory-method="createInstance" destroy-method="destroy">
    <constructor-arg value="~/git/ImageOptimization/lib/binary/linux/"/>
</bean>

You need to have JAVA JDK 7 on the machine for compiling and Maven 3. Then run mvn install and it will packpage up all of the content, with the exception of the binary files, and create a WAR file which is ready to be deployed to your webserver.

How to use

To access the web app run http://localhost/optimize/images/ from a modern browser to launch the web interface. Currently it has only been tested on IE 10+ and Chrome. Please file bugs if you find any issues with other browsers.

imageoptimizationweb's People

Contributors

dependabot[bot] avatar eperret avatar jamesward avatar kimberlylee avatar svc-scm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.