Skip to content
Snippets Groups Projects
Commit c47a583f authored by Toke Eskildsen's avatar Toke Eskildsen
Browse files

Closes #11 (Smarter histogram generation)

parent 7c1f229d
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,7 @@ export THREADS=4 ...@@ -77,7 +77,7 @@ export THREADS=4
# Number of threads used for histograms. Note that histogram generation # Number of threads used for histograms. Note that histogram generation
# is very memory hungry (~2GB for a 30MP image), unless HISTOGRAM_PHEIGHT # is very memory hungry (~2GB for a 30MP image), unless HISTOGRAM_PHEIGHT
# is set to a percentage. # is set to a percentage.
export HISTOGRAM_THREADS=2 export HISTOGRAM_THREADS=8
# Number of threads used for pages. Page generation uses very little memory and # Number of threads used for pages. Page generation uses very little memory and
# is almost exclusively CPU bound. # is almost exclusively CPU bound.
...@@ -126,11 +126,12 @@ export CROP_PERCENT="" ...@@ -126,11 +126,12 @@ export CROP_PERCENT=""
# If auto, histograms will scale individually to the highest value. # If auto, histograms will scale individually to the highest value.
# If script_auto, histograms will scale as with auto, but will be generated by # If script_auto, histograms will scale as with auto, but will be generated by
# script (slow, low mem) instead of ImageMagick (fast, high mem). # script (slow, low mem) instead of ImageMagick (fast, high mem).
# Setting a fixed height will slow down histogram generation severely, but # If auto is specified, it is highly recommended to decrease HISTOGRAM_THREADS
# also remove much of the memory overhead. If this value is specified, it # to 2-4 on a 4-8GB machine
# is therefore recommended to increase HISTOGRAM_THREADS.
# Suggested values are 10-20% # Suggested values are 10-20%
export HISTOGRAM_PHEIGHT="auto" # percentage or script_auto: scripted (low mem, slower)
# auto: GraphicsMagick (high mem, faster)
export HISTOGRAM_PHEIGHT="script_auto"
# If true, tiles are generated for OpenSeadragon. This requires Robert Barta's # If true, tiles are generated for OpenSeadragon. This requires Robert Barta's
# deepzoom (see link in README.md) and will generate a lot of 260x260 pixel tiles. # deepzoom (see link in README.md) and will generate a lot of 260x260 pixel tiles.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment