Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
matrix-media-repo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
matrix-media-repo
Commits
da213b06
Commit
da213b06
authored
1 year ago
by
Travis Ralston
Browse files
Options
Downloads
Patches
Plain Diff
Always return dimensions instead of asking for a 0x0 image
Fixes
https://github.com/turt2live/matrix-media-repo/issues/460
parent
386dc053
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
thumbnailing/u/dimensions.go
+1
-1
1 addition, 1 deletion
thumbnailing/u/dimensions.go
with
1 addition
and
1 deletion
thumbnailing/u/dimensions.go
+
1
−
1
View file @
da213b06
...
...
@@ -14,7 +14,7 @@ func AdjustProperties(srcWidth int, srcHeight int, desiredWidth int, desiredHeig
}
else
if
canAnimate
{
return
true
,
srcWidth
,
srcHeight
,
false
,
method
}
else
{
return
false
,
0
,
0
,
false
,
method
return
false
,
desiredWidth
,
desiredHeight
,
false
,
method
}
}
return
true
,
desiredWidth
,
desiredHeight
,
wantAnimated
,
method
...
...
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