Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cloudooo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
cloudooo
Commits
94130863
Commit
94130863
authored
Aug 26, 2011
by
Priscila Manhaes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix up commit
503a6253
parent
503a6253
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
cloudooo/handler/ffmpeg/handler.py
cloudooo/handler/ffmpeg/handler.py
+1
-1
cloudooo/handler/imagemagick/handler.py
cloudooo/handler/imagemagick/handler.py
+1
-1
cloudooo/handler/pdf/handler.py
cloudooo/handler/pdf/handler.py
+1
-1
No files found.
cloudooo/handler/ffmpeg/handler.py
View file @
94130863
...
...
@@ -55,7 +55,7 @@ class Handler(object):
# XXX This implementation could use ffmpeg -i pipe:0, but
# XXX seems super unreliable currently and it generates currupted files in
# the end
logger
.
debug
(
"FfmpegConvert: %s > %s"
%
(
self
.
source_format
,
destination_format
))
logger
.
debug
(
"FfmpegConvert: %s > %s"
%
(
self
.
input
.
source_format
,
destination_format
))
output_url
=
mktemp
(
suffix
=
".%s"
%
destination_format
,
dir
=
self
.
input
.
directory_name
)
command
=
[
"ffmpeg"
,
...
...
cloudooo/handler/imagemagick/handler.py
View file @
94130863
...
...
@@ -48,7 +48,7 @@ class Handler(object):
def
convert
(
self
,
destination_format
=
None
,
**
kw
):
"""Convert a image"""
logger
.
debug
(
"ImageMagickConvert: %s > %s"
%
(
self
.
source_format
,
destination_format
))
logger
.
debug
(
"ImageMagickConvert: %s > %s"
%
(
self
.
file
.
source_format
,
destination_format
))
output_url
=
mktemp
(
suffix
=
'.%s'
%
destination_format
,
dir
=
self
.
base_folder_url
)
command
=
[
"convert"
,
self
.
file
.
getUrl
(),
output_url
]
...
...
cloudooo/handler/pdf/handler.py
View file @
94130863
...
...
@@ -47,7 +47,7 @@ class Handler(object):
def
convert
(
self
,
destination_format
=
None
,
**
kw
):
""" Convert a pdf document """
logger
.
debug
(
"PDFConvert: %s > %s"
%
(
self
.
source_format
,
destination_format
))
logger
.
debug
(
"PDFConvert: %s > %s"
%
(
self
.
document
.
source_format
,
destination_format
))
output_url
=
mktemp
(
suffix
=
".%s"
%
destination_format
,
dir
=
self
.
document
.
directory_name
)
command
=
[
"pdftotext"
,
self
.
document
.
getUrl
(),
output_url
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment