mágica com manipulação de imagens - tdc 2011 goiânia
DESCRIPTION
Uma visão geral de como a extensão ImageMagick para PHP pode facilitar o trabalho de editar, transformar, analisar e processar imagens, vídeos e documentos automaticamente. Serão explicadas tarefas rotineiras como: - Alterar formatos de imagens. - Redimensionar e cortar imagens. - Extrair imagens de páginas de documentos PDF e quadros de vídeos. - Trabalhar com GIFs animados. - Aplicar filtros e trabalhar com cores. - Adicionar texto e elementos a imagens. - Desenhar e criar formas em imagens.TRANSCRIPT
![Page 1: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/1.jpg)
30 de Outubro The Developers Conference 2011 1
Mágica comManipulação de Imagens
![Page 2: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/2.jpg)
30 de Outubro The Developers Conference 2011 2
Alexandre Gomes Gaigalas
http://about.me/alganet
![Page 3: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/3.jpg)
30 de Outubro The Developers Conference 2011 3
Hoje você vai ver...
● O que são ImageMagick e Imagick
● Operações comuns com imagens
● Operações mágicas com imagens!
![Page 4: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/4.jpg)
30 de Outubro The Developers Conference 2011 4
ImageMagick
● “Photoshop via API”● PHP, Perl, Java, Python, Ruby, etc...● Centenas de formatos de imagens
![Page 5: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/5.jpg)
30 de Outubro The Developers Conference 2011 5
Imagick
● Extensão PHP para o ImageMagick
● ImageMagick != Imagick
● Orientada a objetos
● pecl install imagick
![Page 6: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/6.jpg)
30 de Outubro The Developers Conference 2011 6
O Básico
![Page 7: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/7.jpg)
30 de Outubro The Developers Conference 2011 7
![Page 8: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/8.jpg)
30 de Outubro The Developers Conference 2011 8
Redimensionamento
![Page 9: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/9.jpg)
30 de Outubro The Developers Conference 2011 9
![Page 10: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/10.jpg)
30 de Outubro The Developers Conference 2011 10
Miniaturas
![Page 11: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/11.jpg)
30 de Outubro The Developers Conference 2011 11
Preservação de Aspecto
![Page 12: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/12.jpg)
30 de Outubro The Developers Conference 2011 12
Cortando Imagens
![Page 13: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/13.jpg)
30 de Outubro The Developers Conference 2011 13
![Page 14: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/14.jpg)
30 de Outubro The Developers Conference 2011 14
Miniatura com cortes
![Page 15: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/15.jpg)
30 de Outubro The Developers Conference 2011 15
![Page 16: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/16.jpg)
30 de Outubro The Developers Conference 2011 16
Redimensionamento Líquido
![Page 17: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/17.jpg)
30 de Outubro The Developers Conference 2011 17
![Page 18: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/18.jpg)
30 de Outubro The Developers Conference 2011 18
Bordas Arredondadas
![Page 19: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/19.jpg)
30 de Outubro The Developers Conference 2011 19
![Page 20: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/20.jpg)
30 de Outubro The Developers Conference 2011 20
Sombra
![Page 21: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/21.jpg)
30 de Outubro The Developers Conference 2011 21
![Page 22: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/22.jpg)
30 de Outubro The Developers Conference 2011 22
Texto na Imagem
![Page 23: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/23.jpg)
30 de Outubro The Developers Conference 2011 23
![Page 24: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/24.jpg)
30 de Outubro The Developers Conference 2011 24
Marca D'água
![Page 25: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/25.jpg)
30 de Outubro The Developers Conference 2011 25
![Page 26: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/26.jpg)
30 de Outubro The Developers Conference 2011 26
Transparência em Imagens
![Page 27: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/27.jpg)
30 de Outubro The Developers Conference 2011 27
![Page 28: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/28.jpg)
30 de Outubro The Developers Conference 2011 28
Animação de GIFs
![Page 29: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/29.jpg)
30 de Outubro The Developers Conference 2011 29
Essa imagem é um GIF animado e talvez não funcione em todos os sistemas de slides.
![Page 30: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/30.jpg)
30 de Outubro The Developers Conference 2011 30
Blur
![Page 31: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/31.jpg)
30 de Outubro The Developers Conference 2011 31
![Page 32: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/32.jpg)
30 de Outubro The Developers Conference 2011 32
Carvão
![Page 33: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/33.jpg)
30 de Outubro The Developers Conference 2011 33
![Page 34: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/34.jpg)
30 de Outubro The Developers Conference 2011 34
Bordas
![Page 35: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/35.jpg)
30 de Outubro The Developers Conference 2011 35
![Page 36: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/36.jpg)
30 de Outubro The Developers Conference 2011 36
Polaroid
![Page 37: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/37.jpg)
30 de Outubro The Developers Conference 2011 37
![Page 38: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/38.jpg)
30 de Outubro The Developers Conference 2011 38
Sepia
![Page 39: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/39.jpg)
30 de Outubro The Developers Conference 2011 39
![Page 40: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/40.jpg)
30 de Outubro The Developers Conference 2011 40
Vignette
![Page 41: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/41.jpg)
30 de Outubro The Developers Conference 2011 41
![Page 42: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/42.jpg)
30 de Outubro The Developers Conference 2011 42
Pintura a Óleo
![Page 43: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/43.jpg)
30 de Outubro The Developers Conference 2011 43
![Page 44: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/44.jpg)
30 de Outubro The Developers Conference 2011 44
Lendo PDFs
![Page 45: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/45.jpg)
30 de Outubro The Developers Conference 2011 45
![Page 46: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/46.jpg)
30 de Outubro The Developers Conference 2011 46
Trim em Imagens
![Page 47: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/47.jpg)
30 de Outubro The Developers Conference 2011 47
![Page 48: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/48.jpg)
30 de Outubro The Developers Conference 2011 48
Montagens
![Page 49: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/49.jpg)
30 de Outubro The Developers Conference 2011 49
![Page 50: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/50.jpg)
30 de Outubro The Developers Conference 2011 50
Extraíndo quadros de vídeos
![Page 51: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/51.jpg)
30 de Outubro The Developers Conference 2011 51
![Page 52: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/52.jpg)
30 de Outubro The Developers Conference 2011 52
Limitando Memória
![Page 53: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/53.jpg)
30 de Outubro The Developers Conference 2011 53
Obtendo Metadados
[exif:MaxApertureValue] => 3/1 [exif:MeteringMode] => 5 [exif:Model] => KODAK EASYSHARE V803 ZOOM DIGITAL CAMERA [exif:Orientation] => 1 [exif:ResolutionUnit] => 2 [exif:Saturation] => 0 [exif:SceneCaptureType] => 0 [exif:SceneType] => 1 [exif:SensingMethod] => 2 [exif:Sharpness] => 0 [exif:ShutterSpeedValue] => 966/100
![Page 54: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/54.jpg)
30 de Outubro The Developers Conference 2011 54
Hoje você viu...
● O que são ImageMagick e Imagick
● Operações comuns com imagens
● Operações mágicas com imagens!
![Page 55: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/55.jpg)
30 de Outubro The Developers Conference 2011 55
Perguntas?
![Page 56: Mágica com Manipulação de Imagens - TDC 2011 Goiânia](https://reader033.vdocuments.site/reader033/viewer/2022060119/558fc30b1a28abd7668b47a4/html5/thumbnails/56.jpg)
30 de Outubro The Developers Conference 2011 56
Obrigado!