Giter Club home page Giter Club logo

jalbum's Introduction

jAlbum

Build Status

这是一个使用Java语言编写的本地照片管理系统。使用BS架构。服务端采用Servlet提供RESTful风格接口,供浏览器直接访问。服务端提供后台任务扫描指定目录,并收集指定后缀名的照片文件,生成照片库,识别照片HASH指纹、长宽比、拍摄时间等,最终按照拍摄时间生成年、月、日的归档页面。对于重复照片只会显示一份。相册界面可自适应兼容桌面操作系统浏览器和移动操作系统浏览器。

This is a local photo management system written with the Java language. Using B/S architecture. Server Servlet provides a RESTful style interface, for direct access to the web browser. Service provides a background task scans the specified directory, and collect the specified suffix photos, then generate a photo gallery. HASH fingerprint is used to recognize the duplicate pic fils. The shooting time in Exif is used to sort all the files. By identifying the picture's aspect ratio, set the appropriate display size on a Web page. Eventually in time axis to generate a year, month, and day dimensions page.

install

For ARM platform, such as Raspberry3 ubuntu-mate system, compile jdbcsqlite native so first. Other platform may not need this.

cd jAlbum<br/>
ant -f build_for_Raspberry3.xml

For other platforms, such as Windows, X86 Linux etc. just run the command like:

cd jAlbum
ant 

The build target files are store in the jAlbum/distribute folder.

You can also get the release package in this web page: jAlbum release

start

0. Configure the jalbum.xml file.

cd jAlbum/distribute
edit the jalbum.xml

<?xml version="1.0" encoding="utf-8" ?>  
<config>
    <picfilesuffix>
        <suffix>jpg</suffix>
        <suffix>jpeg</suffix>
        <suffix>png</suffix>
    </picfilesuffix>   
    <minfilesize>51200</minfilesize>
    <threadcount>20</threadcount>
    <maxpicsperonepage>60</maxpicsperonepage>
    <hashalog>MD5</hashalog>
    <inputdir>
        <dir>D:\\</dir>
        <dir>C:\\</dir>
    </inputdir>
    <excludedir>
        <dir>C:\\windows\\</dir>
        <dir>C:\\Program Files\\</dir>
        <dir>./</dir>
    </excludedir>
    <thumbnaildir>
		./thumbnail
	</thumbnaildir>
</config>

picfilesuffix the file type with the suffix that can be scaned by the tool. It is ignorecase. If the "mp4" suffix is configured, You must make sure there is ffprobe exe command in the server. See FFmpeg. for details.
inputdir specify the folder which nedd to scan.
minfilesize specify the min size of Pic file in byte.
maxpicsperonepage specify the max pic count of one index page.
threadcount specify the size of thread pool.
hashalog specify the file HASH fingerprint Algorithm. The common algorithms are: SHA-256, MD5, SHA-1. You can find the stand algorithm names in MessageDigest Algorithms.
excludedir specify the folder which you do not like the tool scan and display the content of it.
thumbnaildir specify the folder which to store the thumbnail to.

1. Start the tool

For the ARM platforms like Raspberry3 ubuntu-mate system:

cd jAlbum/distribute
sh start_for_Raspberry3.sh

For other linux platforms:

cd jAlbum/distribute
sh start.sh

For Windows platforms:

cd jAlbum/distribute
start.bat

access

Open the url: http://ip:2148/ in any Web Browser to access the photo album.

screenshot

jAlbum Screenshot

jalbum's People

Contributors

shentar avatar

Watchers

James Cloos avatar  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.