Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
zesje
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Works on my machine
zesje
Commits
75244e07
Commit
75244e07
authored
5 years ago
by
Ruben Young On
Browse files
Options
Downloads
Patches
Plain Diff
Removed unnecessary line
parent
9b90d847
No related branches found
Branches containing commit
No related tags found
1 merge request
!5
Add multiple choice checkbox location to database
Pipeline
#17330
passed
5 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
zesje/images.py
+0
-1
0 additions, 1 deletion
zesje/images.py
with
0 additions
and
1 deletion
zesje/images.py
+
0
−
1
View file @
75244e07
...
...
@@ -6,7 +6,6 @@ import numpy as np
def
guess_dpi
(
image_array
):
h
,
*
_
=
image_array
.
shape
resolutions
=
np
.
array
([
1200
,
600
,
400
,
300
,
200
,
150
,
120
,
100
,
75
,
60
,
50
,
40
])
return
resolutions
[
np
.
argmin
(
abs
(
resolutions
-
25.4
*
h
/
297
))]
...
...
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