You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ao utilizar o otimizador de XMLs com ativos digitais em SVG, não é possível criar thumbnails pois o Pillow, por si só, ainda não oferece suporte ao formato. O seguinte erro ocorreu:
Traceback (most recent call last):
...
optimised_xml = xml_web_optimiser.get_xml_file()
File "/../packtools/packtools/utils.py", line 631, in get_xml_file
image_filename, self._add_assets_thumbnails
File "/../packtools/packtools/utils.py", line 595, in _get_optimised_image_with_filename
return add_image(image_filename)
File "/../packtools/packtools/utils.py", line 562, in _add_assets_thumbnails
web_image_generator = self._get_web_image_generator(image_filename)
File "/../packtools/packtools/utils.py", line 544, in _get_web_image_generator
image_filename, self.work_dir, image_file_bytes
File "/../packtools/packtools/utils.py", line 309, in __init__
self._image_object = self._get_image_object(file_bytes)
File "/../packtools/packtools/utils.py", line 319, in _get_image_object
'Error reading image "%s": %s' % (self.filename, str(exc))
packtools.exceptions.WebImageGeneratorError: Error reading image "2175-7968-ct-37-3-0092-e02.svg": cannot parse this image
Descrição do problema
Ao utilizar o otimizador de XMLs com ativos digitais em SVG, não é possível criar thumbnails pois o Pillow, por si só, ainda não oferece suporte ao formato. O seguinte erro ocorreu:
Existe um ticket aberto no projeto com a funcionalidade: python-pillow/Pillow#3509.
Passos para reproduzir o problema
package_optimiser
com um pacote contendo documento que referencie ativos digitais em format SVG e os arquivos SVG. Ex: ct/v37n3Comportamento esperado
O otimizador de XMLs deve prever que possam existir problemas na leitura de arquivos de imagens e tratar conforme o parâmetro
stop_if_error
.Screenshots ou vídeos
n/a
Anexos
n/a
Ambiente utilizado
Erro detectado durante a utilização da aplicação https://github.com/scieloorg/document-store-migracao
The text was updated successfully, but these errors were encountered: