Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions magick-slicer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,8 @@ do
;;

-d|--dzi)
dziFormat=true
dziFormat="$2"
shift # past argument
;;

-a|--slicea)
Expand Down Expand Up @@ -721,7 +722,7 @@ sliceImage(){ # zoom image
local tilesFormat="%[fx:page.x/${tileW}]${xyDelim}%[fx:page.y/${tileH}]" # This very important magic! It allow imagemagick to generate tile names with it position and place it in corect folders (but folders need to generate manually)
local file="${resultDir}/${zoom}/%[filename:tile].${resultExt}"

if [ ! $dziFormat ]
if [ "$dziFormat" = false ]
then
# Creating subdirectories for tiles (one vertical line of tiles is in one folder)
local srcSize=`getImgW $src` # Getting image width
Expand Down