php -S localhost:8000In order to open url
/gallery/4.html
translate it to
/index.php?action=gallery¶meter=4
Medium: 800px x 640px
Small: 160px x 160px
To resize an image, issue this command:
convert -resize 160×160 input.JPG output-resized.JPGConvert 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'-
Place all your original images to one folder
-
Open terminal in the folder
-
Add
smallormeduimsubfolders:mkdir small && mkdir medium -
Produce small and medium images
mogrify -path small -auto-orient -thumbnail 160x160 '*.JPG' mogrify -path medium -auto-orient -thumbnail 800x640 '*.JPG'
-
Copy produced images to appropriate
/galleries/subfolders and add their data todb/images.json