Commit ab27585d authored by Priscila Manhaes's avatar Priscila Manhaes

added logger to convertion

parent d6247b2f
...@@ -30,6 +30,7 @@ import re ...@@ -30,6 +30,7 @@ import re
from zope.interface import implements from zope.interface import implements
from cloudooo.interfaces.handler import IHandler from cloudooo.interfaces.handler import IHandler
from cloudooo.file import File from cloudooo.file import File
from cloudooo.util import logger
from subprocess import Popen, PIPE from subprocess import Popen, PIPE
from tempfile import mktemp from tempfile import mktemp
...@@ -47,6 +48,7 @@ class Handler(object): ...@@ -47,6 +48,7 @@ class Handler(object):
def convert(self, destination_format=None, **kw): def convert(self, destination_format=None, **kw):
"""Convert a image""" """Convert a image"""
logger.debug("ImageMagickConvert: %s > %s" % (self.source_format, destination_format))
output_url = mktemp(suffix='.%s' % destination_format, output_url = mktemp(suffix='.%s' % destination_format,
dir=self.base_folder_url) dir=self.base_folder_url)
command = ["convert", self.file.getUrl(), output_url] command = ["convert", self.file.getUrl(), output_url]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment