Autor Tópico: Arquivos TIFF no Ubuntu [Resolvido]  (Lida 8628 vezes)

eliseu_carvalho

  • Visitante
Re: Arquivos TIFF no Ubuntu
« Resposta #15 Online: 09 de Maio de 2012, 21:52 »
O "Anexo.tif" eu consegui. Apareceram 8 arquivos .bmp de mais ou menos 12MB, cada um com uma página do documento. Já o "Inicial.tif" eu não consegui ainda, só apareceram imagens pretas e nada mais.
Agora abri o "Inicial.tif" no Shotwell Viewer e deu a seguinte mensagem: "Faltando arquivo fonte da foto: /home/eliseu/Inicial.tif". Talvez o arquivo esteja corrompido.
« Última modificação: 09 de Maio de 2012, 21:58 por eliseu_carvalho »

Offline ricarribe

  • Usuário Ubuntu
  • *
  • Mensagens: 64
    • Ver perfil
Re: Arquivos TIFF no Ubuntu
« Resposta #16 Online: 09 de Maio de 2012, 22:25 »
O "Anexo.tif" eu consegui. Apareceram 8 arquivos .bmp de mais ou menos 12MB, cada um com uma página do documento. Já o "Inicial.tif" eu não consegui ainda, só apareceram imagens pretas e nada mais.
Agora abri o "Inicial.tif" no Shotwell Viewer e deu a seguinte mensagem: "Faltando arquivo fonte da foto: /home/eliseu/Inicial.tif". Talvez o arquivo esteja corrompido.

Como o arquivo poderia estar corrompido se ele é exibido corretamente no Windows??? Por isso desconfiei da ausência de suporte do Ubuntu.

Offline rjbgbo

  • Usuário Ubuntu
  • *
  • Mensagens: 3.889
  • Xubuntu 18.04LTS
    • Ver perfil
    • Twitter
Re: Arquivos TIFF no Ubuntu
« Resposta #17 Online: 09 de Maio de 2012, 22:37 »
O "Anexo.tif" eu consegui. Apareceram 8 arquivos .bmp de mais ou menos 12MB, cada um com uma página do documento. Já o "Inicial.tif" eu não consegui ainda, só apareceram imagens pretas e nada mais.
Agora abri o "Inicial.tif" no Shotwell Viewer e deu a seguinte mensagem: "Faltando arquivo fonte da foto: /home/eliseu/Inicial.tif". Talvez o arquivo esteja corrompido.

Como o arquivo poderia estar corrompido se ele é exibido corretamente no Windows??? Por isso desconfiei da ausência de suporte do Ubuntu.

Pode ser um formato salvo no arquivo original que esteja dando esse problema.
o formato .tiff possui umas compressões no salvamento: http://artesfinais.com/tiffs-e-a-compressao-lzw
normalmente, eu evito usar tais compressões para não perder qualidade da imagem, mas pode ser que seja alguma delas que esteja causando isso. apesar de que o gimp, tem por exemplo, a opção 'lzw'.
Linux User #440843 | Ubuntu User #11469

Offline rjbgbo

  • Usuário Ubuntu
  • *
  • Mensagens: 3.889
  • Xubuntu 18.04LTS
    • Ver perfil
    • Twitter
Re: Arquivos TIFF no Ubuntu
« Resposta #18 Online: 10 de Maio de 2012, 07:49 »
Experimenta o comando a seguir:

mogrify -format bmp *.tif

acho que precisa da instalação do programa imagemagick
http://wiki.ubuntu-br.org/ImageMagick
Linux User #440843 | Ubuntu User #11469

Offline ricarribe

  • Usuário Ubuntu
  • *
  • Mensagens: 64
    • Ver perfil
Re: Arquivos TIFF no Ubuntu
« Resposta #19 Online: 10 de Maio de 2012, 08:14 »

acho que precisa da instalação do programa imagemagick
http://wiki.ubuntu-br.org/ImageMagick


O ImageMagick já estava instalado no Ubuntu e mesmo assim não resolveu.

Offline rjbgbo

  • Usuário Ubuntu
  • *
  • Mensagens: 3.889
  • Xubuntu 18.04LTS
    • Ver perfil
    • Twitter
Re: Arquivos TIFF no Ubuntu
« Resposta #20 Online: 10 de Maio de 2012, 09:11 »
Não estou conseguindo visualizar no Ubuntu alguns arquivos TIFF baixados do site do Tribunal Regional Federal da 1ª Região.

Digo alguns porque determinados arquivos TIFF o Ubuntu exibe corretamente, mas outros não consigo abrir. Isso não tem a ver com a versão atual do Ubuntu, pois eu já havia notado o mesmo problema nas versões anteriores. Procurei na internet mas não achei nada específico, e aqui no fórum há alguns tópicos que tratam de problemas relacionados a arquivos TIFF em múltiplas páginas (http://ubuntuforum-br.org/index.php/topic,72687.0.html), o que não vem ao caso.

............


esse link que você menciona, leva a um tópico do pinduvoz, que é advogado; e tem uma solução, ao que parece não ser seu objetivo
conforme falei, o problema deve estar no modo como são salvos os arquivos originais em .tiff
também não consegui abrir nenhum dos arquivos que você deu como exemplo

Linux User #440843 | Ubuntu User #11469

Offline Tota

  • Usuário Ubuntu
  • *
  • Mensagens: 14.982
    • Ver perfil
Re: Arquivos TIFF no Ubuntu
« Resposta #21 Online: 10 de Maio de 2012, 09:15 »
aqui não consegui, nem convertendo com o imagemagick que apresentou erros na conversão

Offline ricarribe

  • Usuário Ubuntu
  • *
  • Mensagens: 64
    • Ver perfil
Re: Arquivos TIFF no Ubuntu
« Resposta #22 Online: 10 de Maio de 2012, 10:37 »
Procurei na internet mas não achei nada específico, e aqui no fórum há alguns tópicos que tratam de problemas relacionados a arquivos TIFF em múltiplas páginas (http://ubuntuforum-br.org/index.php/topic,72687.0.html), o que não vem ao caso.

............


esse link que você menciona, leva a um tópico do pinduvoz, que é advogado; e tem uma solução, ao que parece não ser seu objetivo
conforme falei, o problema deve estar no modo como são salvos os arquivos originais em .tiff
também não consegui abrir nenhum dos arquivos que você deu como exemplo



Esses arquivos são criados pelo setor responsável do próprio TRF, ou seja, não tenho como determinar a mudança do padrão, até porque nem sei mesmo ao certo o que está causando essa incompatibilidade.

Uma alternativa que pensei é instalar via Wine um dos programas para Windows sugeridos no site do TRF, mas gostaria de tentar uma solução nativa do Ubuntu, se é que existe. Pode ser que exista algum pacote que não vem instalado por padrão no sistema ou alguma configuração que resolveria o problema. Mas outro problema é descobrir qual seria esse pacote ou configuração, e eu não faço a menor ideia.

Offline Xterminator

  • Usuário Ubuntu
  • *
  • Mensagens: 1.279
    • Ver perfil
Re: Arquivos TIFF no Ubuntu
« Resposta #23 Online: 10 de Maio de 2012, 12:47 »
aqui não consegui, nem convertendo com o imagemagick que apresentou erros na conversão

Idem, o Anexo abre normal pois a formato de compressão é atual, g4
já o outro exibe muitos erros no final, se eu encontrar algo por aí com a solução eu posto aqui, vou continuar procurando, uma solução.
Código: [Selecionar]
edson@edson:~/Downloads$ identify -verbose Anexo.tif
Image: Anexo.tif
  Format: TIFF (Tagged Image File Format)
  Geometry: 1659x2383
  Class: PseudoClass
  Type: bilevel
  Depth: 1 bits-per-pixel component
  Channel Depths:
    Gray:     1 bits
  Channel Statistics:
    Gray:
      Minimum:                     0.00 (0.0000)
      Maximum:                   255.00 (1.0000)
      Mean:                      240.71 (0.9439)
      Standard Deviation:         58.65 (0.2300)
  Colors: 2
    0: (  0,  0,  0)   black
    1: (255,255,255)   white
  Resolution: 78x78 pixels/inch
  Filesize: 263.8K
  Interlace: No
  Orientation: TopLeft
  Background Color: white
  Border Color: #DFDFDF
  Matte Color: #BDBDBD
  Compose: Over
  Dispose: Undefined
  Iterations: 0
  Scene: 0 of 8
  Compression: Group4
  Software: Oi/GFS, writer v00.07.00
  Signature: f0318c92876d04dd7c97731331e9bd4c40103651be37e0dc7738b98acbbbcdda
  Tainted: False
  User Time: 0.300u
  Elapsed Time: 0:01
  Pixels Per Second: 12.6M
Image: Anexo.tif
  Format: TIFF (Tagged Image File Format)
  Geometry: 1657x2382
  Class: PseudoClass
  Type: bilevel
  Depth: 1 bits-per-pixel component
  Channel Depths:
    Gray:     1 bits
  Channel Statistics:
    Gray:
      Minimum:                     0.00 (0.0000)
      Maximum:                   255.00 (1.0000)
      Mean:                      241.66 (0.9477)
      Standard Deviation:         56.77 (0.2226)
  Colors: 2
    0: (  0,  0,  0)   black
    1: (255,255,255)   white
  Resolution: 78x78 pixels/inch
  Filesize: 263.8K
  Interlace: No
  Orientation: TopLeft
  Background Color: white
  Border Color: #DFDFDF
  Matte Color: #BDBDBD
  Compose: Over
  Dispose: Undefined
  Iterations: 0
  Scene: 1 of 8
  Compression: Group4
  Software: Oi/GFS, writer v00.07.00
  Signature: 3923de7dd5e979ee13d0b6f58ed2145e62284a22abd0e30f937828051d25dd13
  Tainted: False
  User Time: 2.010u
  Elapsed Time: 0:02
  Pixels Per Second: 2.0M
Image: Anexo.tif
  Format: TIFF (Tagged Image File Format)
  Geometry: 1657x2377
  Class: PseudoClass
  Type: bilevel
  Depth: 1 bits-per-pixel component
  Channel Depths:
    Gray:     1 bits
  Channel Statistics:
    Gray:
      Minimum:                     0.00 (0.0000)
      Maximum:                   255.00 (1.0000)
      Mean:                      241.82 (0.9483)
      Standard Deviation:         56.46 (0.2214)
  Colors: 2
    0: (  0,  0,  0)   black
    1: (255,255,255)   white
  Resolution: 78x78 pixels/inch
  Filesize: 263.8K
  Interlace: No
  Orientation: TopLeft
  Background Color: white
  Border Color: #DFDFDF
  Matte Color: #BDBDBD
  Compose: Over
  Dispose: Undefined
  Iterations: 0
  Scene: 2 of 8
  Compression: Group4
  Software: Oi/GFS, writer v00.07.00
  Signature: a244a02c40d8600cb0160f11594db866f00f7bbd49c1e31a22f381741aba6a0d
  Tainted: False
  User Time: 3.700u
  Elapsed Time: 0:04
  Pixels Per Second: 1.0M
Image: Anexo.tif
  Format: TIFF (Tagged Image File Format)
  Geometry: 1654x2381
  Class: PseudoClass
  Type: bilevel
  Depth: 1 bits-per-pixel component
  Channel Depths:
    Gray:     1 bits
  Channel Statistics:
    Gray:
      Minimum:                     0.00 (0.0000)
      Maximum:                   255.00 (1.0000)
      Mean:                      242.81 (0.9522)
      Standard Deviation:         54.41 (0.2134)
  Colors: 2
    0: (  0,  0,  0)   black
    1: (255,255,255)   white
  Resolution: 78x78 pixels/inch
  Filesize: 263.8K
  Interlace: No
  Orientation: TopLeft
  Background Color: white
  Border Color: #DFDFDF
  Matte Color: #BDBDBD
  Compose: Over
  Dispose: Undefined
  Iterations: 0
  Scene: 3 of 8
  Compression: Group4
  Software: Oi/GFS, writer v00.07.00
  Signature: 96d278723ca7178805e24687e9f0be717276c0b93df6a32b3b9b3c5eaa35ce9d
  Tainted: False
  User Time: 5.370u
  Elapsed Time: 0:06
  Pixels Per Second: 731.2K
Image: Anexo.tif
  Format: TIFF (Tagged Image File Format)
  Geometry: 1656x2386
  Class: PseudoClass
  Type: bilevel
  Depth: 1 bits-per-pixel component
  Channel Depths:
    Gray:     1 bits
  Channel Statistics:
    Gray:
      Minimum:                     0.00 (0.0000)
      Maximum:                   255.00 (1.0000)
      Mean:                      241.78 (0.9482)
      Standard Deviation:         56.53 (0.2217)
  Colors: 2
    0: (  0,  0,  0)   black
    1: (255,255,255)   white
  Resolution: 78x78 pixels/inch
  Filesize: 263.8K
  Interlace: No
  Orientation: TopLeft
  Background Color: white
  Border Color: #DFDFDF
  Matte Color: #BDBDBD
  Compose: Over
  Dispose: Undefined
  Iterations: 0
  Scene: 4 of 8
  Compression: Group4
  Software: Oi/GFS, writer v00.07.00
  Signature: c7e9988f753181aae6eae15c008ca96355e46054703a8df8df657da7491ff268
  Tainted: False
  User Time: 7.050u
  Elapsed Time: 0:07
  Pixels Per Second: 556.0K
Image: Anexo.tif
  Format: TIFF (Tagged Image File Format)
  Geometry: 1656x2385
  Class: PseudoClass
  Type: bilevel
  Depth: 1 bits-per-pixel component
  Channel Depths:
    Gray:     1 bits
  Channel Statistics:
    Gray:
      Minimum:                     0.00 (0.0000)
      Maximum:                   255.00 (1.0000)
      Mean:                      239.08 (0.9376)
      Standard Deviation:         61.69 (0.2419)
  Colors: 2
    0: (  0,  0,  0)   black
    1: (255,255,255)   white
  Resolution: 78x78 pixels/inch
  Filesize: 263.8K
  Interlace: No
  Orientation: TopLeft
  Background Color: white
  Border Color: #DFDFDF
  Matte Color: #BDBDBD
  Compose: Over
  Dispose: Undefined
  Iterations: 0
  Scene: 5 of 8
  Compression: Group4
  Software: Oi/GFS, writer v00.07.00
  Signature: 6d9af955a29d9f87640915ce8b3c63841ebe3b06131eb794a94a659f27003879
  Tainted: False
  User Time: 8.750u
  Elapsed Time: 0:09
  Pixels Per Second: 446.9K
Image: Anexo.tif
  Format: TIFF (Tagged Image File Format)
  Geometry: 1656x2387
  Class: PseudoClass
  Type: bilevel
  Depth: 1 bits-per-pixel component
  Channel Depths:
    Gray:     1 bits
  Channel Statistics:
    Gray:
      Minimum:                     0.00 (0.0000)
      Maximum:                   255.00 (1.0000)
      Mean:                      235.36 (0.9230)
      Standard Deviation:         67.98 (0.2666)
  Colors: 2
    0: (  0,  0,  0)   black
    1: (255,255,255)   white
  Resolution: 78x78 pixels/inch
  Filesize: 263.8K
  Interlace: No
  Orientation: TopLeft
  Background Color: white
  Border Color: #DFDFDF
  Matte Color: #BDBDBD
  Compose: Over
  Dispose: Undefined
  Iterations: 0
  Scene: 6 of 8
  Compression: Group4
  Software: Oi/GFS, writer v00.07.00
  Signature: dd6ca0966f58507352732bf42c1e04523a770147b505de3b9626c60b30700471
  Tainted: False
  User Time: 10.430u
  Elapsed Time: 0:11
  Pixels Per Second: 373.7K
Image: Anexo.tif
  Format: TIFF (Tagged Image File Format)
  Geometry: 1656x2386
  Class: PseudoClass
  Type: bilevel
  Depth: 1 bits-per-pixel component
  Channel Depths:
    Gray:     1 bits
  Channel Statistics:
    Gray:
      Minimum:                     0.00 (0.0000)
      Maximum:                   255.00 (1.0000)
      Mean:                      248.59 (0.9748)
      Standard Deviation:         39.93 (0.1566)
  Colors: 2
    0: (  0,  0,  0)   black
    1: (255,255,255)   white
  Resolution: 78x78 pixels/inch
  Filesize: 263.8K
  Interlace: No
  Orientation: TopLeft
  Background Color: white
  Border Color: #DFDFDF
  Matte Color: #BDBDBD
  Compose: Over
  Dispose: Undefined
  Iterations: 0
  Scene: 7 of 8
  Compression: Group4
  Software: Oi/GFS, writer v00.07.00
  Signature: fc64f5071055d6ac21a85b525549a4408447e9b70eae88eb23bce4b570b70813
  Tainted: False
  User Time: 12.100u
  Elapsed Time: 0:13
  Pixels Per Second: 321.3K

Já o outro possui erros no final do arquivo.

Código: [Selecionar]
edson@edson:~/Downloads$ identify -verbose Inicial.tif
Image: Inicial.tif
  Format: TIFF (Tagged Image File Format)
  Class: DirectClass
  Geometry: 1250x1806+0+0
  Resolution: 59x59
  Print size: 21.1864x30.6102
  Units: PixelsPerInch
  Type: Bilevel
  Base type: Bilevel
  Endianess: MSB
  Colorspace: RGB
  Depth: 8/1-bit
  Channel depth:
    gray: 1-bit
  Channel statistics:
    Gray:
      min: 0 (0)
      max: 0 (0)
      mean: 0 (0)
      standard deviation: 0 (0)
      kurtosis: 0
      skewness: 0
  Histogram:
   2257500: (  0,  0,  0) #000000 black
  Rendering intent: Undefined
  Interlace: None
  Background color: white
  Border color: rgb(223,223,223)
  Matte color: grey74
  Transparent color: black
  Compose: Over
  Page geometry: 1250x1806+0+0
  Dispose: Undefined
  Iterations: 0
  Scene: 0 of 6
  Compression: JPEG
  Orientation: TopLeft
  Properties:
    date:create: 2012-05-10T10:43:47-03:00
    date:modify: 2012-05-10T10:43:47-03:00
    signature: 2764fd1f68e897e0aa6cfbed1f6f64222fb5c8678ba042cc74a8b317be82683c
    tiff:endian: lsb
    tiff:photometric: min-is-black
    tiff:rows-per-strip: 1808
    tiff:software: Oi/GFS, writer v00.07.00
  Artifacts:
    verbose: true
  Tainted: False
  Filesize: 630KBB
  Number pixels: 2.257MB
  Pixels per second: 11.29MB
  User time: 0.200u
  Elapsed time: 0:01.199............  
identify: Inicial.tif: unknown field with tag 32931 (0x80a3) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/706.
identify: Inicial.tif: unknown field with tag 32934 (0x80a6) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/706.
identify: Inicial.tif: unknown field with tag 37680 (0x9330) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/706.
identify: Depreciated and troublesome old-style JPEG compression mode, please convert to new-style JPEG compression and notify vendor of writing software. `OJPEGSetupDecode' @ warning/tiff.c/TIFFWarnings/706.
identify: JPEG compressed data indicates unexpected subsampling values. `OJPEGReadHeaderInfoSecStreamSof' @ error/tiff.c/TIFFErrors/496.
identify: Inicial.tif: unknown field with tag 32931 (0x80a3) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/706.
identify: Inicial.tif: unknown field with tag 32934 (0x80a6) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/706.
identify: Depreciated and troublesome old-style JPEG compression mode, please convert to new-style JPEG compression and notify vendor of writing software. `OJPEGSetupDecode' @ warning/tiff.c/TIFFWarnings/706.
identify: JPEG compressed data indicates unexpected subsampling values. `OJPEGReadHeaderInfoSecStreamSof' @ error/tiff.c/TIFFErrors/496.
identify: Inicial.tif: unknown field with tag 32931 (0x80a3) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/706.
identify: Inicial.tif: unknown field with tag 32934 (0x80a6) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/706.
identify: Depreciated and troublesome old-style JPEG compression mode, please convert to new-style JPEG compression and notify vendor of writing software. `OJPEGSetupDecode' @ warning/tiff.c/TIFFWarnings/706.
identify: JPEG compressed data indicates unexpected subsampling values. `OJPEGReadHeaderInfoSecStreamSof' @ error/tiff.c/TIFFErrors/496.
identify: Inicial.tif: unknown field with tag 32931 (0x80a3) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/706.
identify: Inicial.tif: unknown field with tag 32934 (0x80a6) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/706.
identify: Depreciated and troublesome old-style JPEG compression mode, please convert to new-style JPEG compression and notify vendor of writing software. `OJPEGSetupDecode' @ warning/tiff.c/TIFFWarnings/706.
identify: JPEG compressed data indicates unexpected subsampling values. `OJPEGReadHeaderInfoSecStreamSof' @ error/tiff.c/TIFFErrors/496.
identify: Inicial.tif: unknown field with tag 32931 (0x80a3) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/706.
identify: Inicial.tif: unknown field with tag 32934 (0x80a6) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/706.
identify: Depreciated and troublesome old-style JPEG compression mode, please convert to new-style JPEG compression and notify vendor of writing software. `OJPEGSetupDecode' @ warning/tiff.c/TIFFWarnings/706.
identify: JPEG compressed data indicates unexpected subsampling values. `OJPEGReadHeaderInfoSecStreamSof' @ error/tiff.c/TIFFErrors/496.
identify: Inicial.tif: unknown field with tag 32931 (0x80a3) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/706.
identify: Inicial.tif: unknown field with tag 32934 (0x80a6) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/706.
identify: Depreciated and troublesome old-style JPEG compression mode, please convert to new-style JPEG compression and notify vendor of writing software. `OJPEGSetupDecode' @ warning/tiff.c/TIFFWarnings/706.
identify: JPEG compressed data indicates unexpected subsampling values. `OJPEGReadHeaderInfoSecStreamSof' @ error/tiff.c/TIFFErrors/496.

Offline Xterminator

  • Usuário Ubuntu
  • *
  • Mensagens: 1.279
    • Ver perfil
Re: Arquivos TIFF no Ubuntu
« Resposta #24 Online: 10 de Maio de 2012, 13:49 »
Acho que isto resolve.
http://newsgroup.xnview.com/viewtopic.php?f=60&t=24056
É só escolher a versão (32 ou  64bits) e ler o README (para criar os atalhos nos menus), basicamente
Você baixa, extrai o pacote, entra no diretório e executa ./xnview.sh
PS: Como eu não tinha nada do qt instalado aqui ele pediu para que eu instalasse a libphonon4
é isto,  fuiiiiiiiiiiiiiiiiiiiiiiiii
http://img10.imageshack.us/img10/729/capturadetelade20120510.png

PS2:Este arquivo está corrompido, só porque abre não quer dizer que não esteja corrompido
o desenvolvedor simplesmente pode colocar para o programa ignorar os erros simples da biblioteca utilizada.
« Última modificação: 10 de Maio de 2012, 15:46 por Xterminator »

Offline ricarribe

  • Usuário Ubuntu
  • *
  • Mensagens: 64
    • Ver perfil
Re: Arquivos TIFF no Ubuntu
« Resposta #25 Online: 11 de Maio de 2012, 12:57 »
Obrigado, Xterminator!

Essa versão do XnView pra Linux funcionou aqui pra mim também! Pena que não está disponível dos repositórios oficiais.

Offline Xterminator

  • Usuário Ubuntu
  • *
  • Mensagens: 1.279
    • Ver perfil
Re: Arquivos TIFF no Ubuntu [Resolvido]
« Resposta #26 Online: 11 de Maio de 2012, 13:07 »
Obrigado, Xterminator!

Essa versão do XnView pra Linux funcionou aqui pra mim também! Pena que não está disponível dos repositórios oficiais.

Por nada, se tiver solução a gente encontra :D