Code Monkey home page Code Monkey logo

imageutil's Introduction

ImageUtil

Features

  • 等比例調整圖片大小
  • 旋轉圖片
  • 格式轉換

Supported Image Formats

Import

  • GIF
  • JPEG
  • PNG
  • BMP
  • TIFF
  • PDF

Export

  • GIF
  • JPEG
  • PNG
  • BMP
  • TIFF
  • Base64 String

Usage

  1. 編輯 config.properties 設定檔
    • 可調整參數 from 為 image 或 pdf
    • 可調整參數 image.output.format(輸出圖片格式)
    • 可調整參數 image.output.width(輸出圖片寬)、image.output.height(輸出圖片高)
    • 可調整參數 image.output.quality(輸出圖片品質,範圍為 0.0~1.0)
    • 可調整參數 image.output.orientation(portrait 為輸出直立圖片、landscape 為輸出橫向圖片)
    • 可調整參數 image.output.multipage(true 為單檔多頁 TIFF、false 為多檔 TIFF)
  2. 將要轉檔的圖片放置到 image_source 目錄中
  3. 執行 run.sh(macOS、Linux)或 run.bat(Windows)
  4. 顯示完成後,輸出圖片會放置於 output 目錄中

imageutil's People

Contributors

jackblackevo avatar

Stargazers

 avatar

Watchers

 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.