Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85197638
mogrify_wrapper.ex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
660 B
Referenced Files
None
Subscribers
None
mogrify_wrapper.ex
View Options
# Pleroma: A lightweight social networking server
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma.MogrifyWrapper
do
@moduledoc
"""
Default implementation of MogrifyBehaviour that delegates to Mogrify.
"""
@behaviour
Pleroma.MogrifyBehaviour
@impl
true
def
open
(
file
)
do
Mogrify
.
open
(
file
)
end
@impl
true
def
custom
(
image
,
action
)
do
Mogrify
.
custom
(
image
,
action
)
end
@impl
true
def
custom
(
image
,
action
,
options
)
do
Mogrify
.
custom
(
image
,
action
,
options
)
end
@impl
true
def
save
(
image
,
opts
)
do
Mogrify
.
save
(
image
,
opts
)
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Mon, Jun 29, 9:28 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1516608
Default Alt Text
mogrify_wrapper.ex (660 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment