Skip to content

progand/zbar

Repository files navigation

Development

php -S localhost:8000

Routing

In order to open url

/gallery/4.html

translate it to

/index.php?action=gallery&parameter=4

Images

Sizes constraits

Medium: 800px x 640px

Small: 160px x 160px

Convert images

Single image

To resize an image, issue this command:

convert -resize 160×160 input.JPG output-resized.JPG

Multiple images

Convert all JPG images in current directory to small or meduim format and place them in /small or medium subdirectory:

mogrify -path small -auto-orient -thumbnail 160x160 '*.JPG'
mogrify -path medium -auto-orient -thumbnail 800x640 '*.JPG'

Add images

  1. Place all your original images to one folder

  2. Open terminal in the folder

  3. Add small or meduim subfolders:

    mkdir small && mkdir medium
  4. Produce small and medium images

       mogrify -path small -auto-orient -thumbnail 160x160 '*.JPG'
       mogrify -path medium -auto-orient -thumbnail 800x640 '*.JPG'
  5. Copy produced images to appropriate /galleries/ subfolders and add their data to db/images.json

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •