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
9695b2da
Commit
9695b2da
authored
11 years ago
by
Toke Eskildsen
Browse files
Options
Downloads
Patches
Plain Diff
Added image quality for jpg display images
parent
c5f09404
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
+6
-1
6 additions, 1 deletion
quack.sh
with
6 additions
and
1 deletion
quack.sh
+
6
−
1
View file @
9695b2da
...
...
@@ -52,7 +52,12 @@ IMAGE_GLOB="*.tiff *.tif *.jp2 *.jpeg2000 *.j2k *.jpg *.jpeg"
# OurScanProject_batch_2013-09-18_page_007.tif
# OurScanProject_batch_2013-09-18_page_007.alto.xml
ALTO_EXT
=
".alto.xml"
# The image format for the QA image. Possible values are png and jpg.
# png is recommended if QA should check image quality in detail.
export
IMAGE_DISP_EXT
=
"png"
# If jpg is chosen for IMAGE_DISP_EXT, this quality setting (1-100)
# will be used when genrerating the images.
export
IMAGE_DISP_QUALITY
=
"95"
export
THUMB_IMAGE_SIZE
=
"300x200"
# These elements will be grepped from the ALTO-files and shown on the image pages
ALTO_ELEMENTS
=
"processingDateTime softwareName"
...
...
@@ -198,7 +203,7 @@ function makeImages() {
if
[
!
-f
$DEST_IMAGE
]
;
then
echo
" -
${
DEST_IMAGE
##*/
}
"
gm convert
"
$SOURCE_IMAGE
"
"
$DEST_IMAGE
"
gm convert
"
$SOURCE_IMAGE
"
-quality
$IMAGE_DISP_QUALITY
"
$DEST_IMAGE
"
fi
if
[
"png"
==
${
IMAGE_DISP_EXT
}
]
;
then
...
...
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