Ao tentar redimensionar uma imagem usando a ferramenta ImageMagick o usuário recebe a mensagem de erro abaixo.
convert.exe: UnableToOpenConfigureFile `magic.xml' @ warning/configure.c/GetConfigureOptions/714.
Adicione o arquivo magic.xml (conteúdo abaixo) a pasta onde se encontra o convert.exe:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE magicmap [ <!ELEMENT magicmap (magic)+> <!ELEMENT magic (#PCDATA)> <!ATTLIST magic name CDATA #REQUIRED> <!ATTLIST magic offset CDATA "0"> <!ATTLIST magic target CDATA #REQUIRED> ]> <!-- Associate an image format with a unique identifier. Many image formats have identifiers that uniquely identify a particular image format. For example, the GIF image format always begins with GIF8 as the first 4 characters of the image. ImageMagick uses this information to quickly determine the type of image it is dealing with when it reads an image. --> <magicmap> <!-- <magic name="GIF" offset="0" target="GIF8"/> --> <!-- <magic name="JPEG" offset="0" target="\377\330\377"/> --> <!-- <magic name="PNG" offset="0" target="\211PNG\r\n\032\n"/> --> <!-- <magic name="TIFF" offset="0" target="\115\115\000\052"/> --> </magicmap>
Natural de Salvador-BA, é graduado em Analise de Sistemas pela Universidade Católica do Salvador (2003), e especialista em Engenharia de Software pela Universidade Salvador (2010). Exerce atualmente o cargo de Analista Judiciário na Justiça do Trabalho.