Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
Quack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
commul
Zeit.shift
Quack
Commits
b63917b2
Commit
b63917b2
authored
11 years ago
by
Toke Eskildsen
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix: The presentation image generation could not be enabled
parent
20327fed
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
quack.sh
+4
-1
4 additions, 1 deletion
quack.sh
with
4 additions
and
1 deletion
quack.sh
+
4
−
1
View file @
b63917b2
...
...
@@ -125,7 +125,7 @@ TILE="false"
# If true, a secondary view of the scans will be inserted into the page.
# The view represents an end-user version of the scan. This will often be
# downscaled, levelled, sharpened and JPEG'ed.
PRESENTATION
=
"true"
export
PRESENTATION
=
"true"
# Overlay colors for indicating burned out high- and low-lights
export
OVERLAY_BLACK
=
3399FF
...
...
@@ -346,6 +346,7 @@ function makeImages() {
if
[
".true"
==
".
$PRESENTATION
"
]
;
then
if
shouldGenerate
"
$FORCE_PRESENTATION
"
"
$PRESENTATION_IMAGE
"
"presentation"
;
then
echo
"Should generate"
$PRESENTATION_SCRIPT
"
$CONV
"
"
$PRESENTATION_IMAGE
"
fi
fi
...
...
@@ -590,6 +591,7 @@ function makePreviewPage() {
local
TIDENTIFY
=
`
identify
"
$THUMB_IMAGE
"
|
grep
-o
" [0-9]
\+
x[0-9]
\\
+ "
`
THUMB_WIDTH
=
`
echo
$TIDENTIFY
|
grep
-o
"[0-9]
\+
x"
|
grep
-o
"[0-9]
\+
"
`
THUMB_HEIGHT
=
`
echo
$TIDENTIFY
|
grep
-o
"x[0-9]
\+
"
|
grep
-o
"[0-9]
\+
"
`
if
[
".true"
==
".
$PRESENTATION
"
]
;
then
local
PIDENTIFY
=
`
identify
"
$PRESENTATION_IMAGE
"
|
grep
-o
" [0-9]
\+
x[0-9]
\\
+ "
`
PRESENTATION_WIDTH
=
`
echo
$PIDENTIFY
|
grep
-o
"[0-9]
\+
x"
|
grep
-o
"[0-9]
\+
"
`
...
...
@@ -680,6 +682,7 @@ function makePreviewPage() {
# image stats
# grey_stats "$IMAGE"
local
GREY
=
`
grey_stats
"
$IMAGE
"
`
# $PIXELS $UNIQUE $FIRST_COUNT $PERCENT_FIRST $FIRST_GREY $LAST_COUNT $PERCENT_LAST $LAST_GREY
# 1000095 512 82362 8.23 (0,0,0) 255 .02 (255,255,255)
GREY_PIXELS
=
`
echo
"
$GREY
"
|
cut
-d
\
-f1
`
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment