SlideShare uma empresa Scribd logo
1 de 10
Baixar para ler offline
M agickTiler
A Java tool and embeddable library for converting images into
  formats suitable for publishing as zoomable Web images.




                                          http://code.google.com/p/magicktiler/
Image Tiling B asics – The
                  P yramid


Y

                              Y/2
                                                           Y/4
                                                                            Y/8

             X                               X/2                 X/4              X/8



                              (some math...)

    No. of zoom levels =   ⌈ log   2   max   {         x
                                                   tilewidth
                                                             ,
                                                                   y
                                                               tileheight   }⌉ + 1
Tiling Schemes
•   Zoomify
•   TM S
•   Google M aps
•   M S D eep Zoom
•   …
Variations are in the details…
  tile naming, directory layout, file formats and sizes,
  descriptor files, handling of irregular tile sizes.
TM S     1

<zo o m -level>
  <c o lum n>
     ro w .jpg / png
     ro w .jpg / png
     …


      /0/2.jpg   /1/2.jpg   /2/2.jpg



      /0/1.jpg   /1/1.jpg   /2/1.jpg



      /0/0.jpg   /1/0.jpg   /2/0.jpg
                                       Tile (x and y) M U S T be n x tilesize!
                                       B orders M U S T be top/right.
1
    as supported by O penLayers
Zoomify
<T ileG ro upX >
  <level>-<c o l>-<ro w >.jpg
  <level>-<c o l>-<ro w >.jpg
      …


    -0-0.jpg   -1-0.jpg   -2-0.jpg



    -0-1.jpg   -1-1.jpg   -2-1.jpg



    -0-2.jpg   -1-2.jpg   -2-2.jpg




   Irregular tiles M U S T be
   bottom/ right.
Zoomify: TileGroups (The Tricky
             P art)
●
    Starting with the lowest zoom level (1x1 tile)
●
    Count! (left->right, top->bottom)
●
    Start a new TileGroup after 256 tiles!

                        5    6     7

           1    2
    0
                        8    9     10
           3    4

                        11   12    13
Google M aps
• R esize the longest dimension to the closest 256n²
• Square the image using background-colour
  bufer
• Tiles are square (256x256)
• Tiles per zoomlevel: 4zoomlevel


 <o ut-dir>                      -0-0   -1-0   -2-0   -3-0
   <level>-<c o l>-<ro w >.jpg
   <level>-<c o l>-<ro w >.jpg
                                 -0-1   -1-1   -2-1   -3-1
      …
                                 -0-2   -1-2   -2-2   -3-2


                                 -0-3   -1-3   -2-3   -3-3
P erformance O ptimizations
• Striping
   – The base image is cut into either horizontal or
     vertical stripes to avoid operations on 'large'
     images
   – For each zoom level, the stripes are generated
     based on the stripes of the previous
     zoomlevel (stripes are merged)

• Single GM/IM operations where possible
C LI
usage: java -jar magicktiler [-b <color>] [-f <format>] [-g] [-h] -i
       <input> [-l] [-o <output>] [-p] [-q <quality>] -s <scheme> [-v]


-b <color>     background color, default=white
-f <format>    tile format ('jpeg' or 'png'), default=jpeg
-g             displays the GUI (ignores all other parameters)
-h             displays this help text
-i <input>     mandatory input file or directory
-l             writes reporting information to a log file
-o <output>    output directory (for tilesets) or file (for PTIF), default=.
-p             generate an HTML preview file
-q <quality>   JPEG compression quality (0 - 100), default=75
-s <scheme>    mandatory tiling scheme ('tms', 'zoomify', 'gmap' or 'ptif')
-v             validate the input instead of generating a tileset


Example: java -jar magicktiler.jar -s tms -f jpeg -i image.tif -p
Finally, some Java!

Mais conteúdo relacionado

Mais procurados

Mais procurados (7)

Learning ProcessingJS
Learning ProcessingJSLearning ProcessingJS
Learning ProcessingJS
 
Domino de factorizació
Domino de factorizacióDomino de factorizació
Domino de factorizació
 
Domino de factorización 2
Domino de factorización 2Domino de factorización 2
Domino de factorización 2
 
Domino de factorización 3
Domino de factorización 3Domino de factorización 3
Domino de factorización 3
 
Html5 canvas
Html5 canvasHtml5 canvas
Html5 canvas
 
Intro to HTML5 Canvas
Intro to HTML5 CanvasIntro to HTML5 Canvas
Intro to HTML5 Canvas
 
Day 6 multiplying binomials
Day 6 multiplying binomialsDay 6 multiplying binomials
Day 6 multiplying binomials
 

Semelhante a MagickTiler at Toronto JUG

Matlab Graphics Tutorial
Matlab Graphics TutorialMatlab Graphics Tutorial
Matlab Graphics TutorialCheng-An Yang
 
2011/11/20 modul8 workshop at Apple Store Ginza
2011/11/20 modul8 workshop at Apple Store Ginza2011/11/20 modul8 workshop at Apple Store Ginza
2011/11/20 modul8 workshop at Apple Store Ginzaopticious
 
Intro to Python (High School) Unit #3
Intro to Python (High School) Unit #3Intro to Python (High School) Unit #3
Intro to Python (High School) Unit #3Jay Coskey
 
Lecture 02 visualization and programming
Lecture 02   visualization and programmingLecture 02   visualization and programming
Lecture 02 visualization and programmingSmee Kaem Chann
 
The Technology behind Shadow Warrior, ZTG 2014
The Technology behind Shadow Warrior, ZTG 2014The Technology behind Shadow Warrior, ZTG 2014
The Technology behind Shadow Warrior, ZTG 2014Jarosław Pleskot
 
Processing and Processing.js
Processing and Processing.jsProcessing and Processing.js
Processing and Processing.jsjeresig
 
Rendering Art on the Web - A Performance compendium
Rendering Art on the Web - A Performance compendiumRendering Art on the Web - A Performance compendium
Rendering Art on the Web - A Performance compendiumRaimon Ràfols
 
Presentation: Plotting Systems in R
Presentation: Plotting Systems in RPresentation: Plotting Systems in R
Presentation: Plotting Systems in RIlya Zhbannikov
 
image_enhancement_spatial
 image_enhancement_spatial image_enhancement_spatial
image_enhancement_spatialhoneyjecrc
 
CS 354 Texture Mapping
CS 354 Texture MappingCS 354 Texture Mapping
CS 354 Texture MappingMark Kilgard
 
Generational Layered Canvas Mechanism for Collaborative Web Applications
Generational Layered Canvas Mechanism for Collaborative Web ApplicationsGenerational Layered Canvas Mechanism for Collaborative Web Applications
Generational Layered Canvas Mechanism for Collaborative Web Applicationskata shin
 
CSS3 For WebKit: iPadDevCamp Presentation
CSS3 For WebKit: iPadDevCamp PresentationCSS3 For WebKit: iPadDevCamp Presentation
CSS3 For WebKit: iPadDevCamp PresentationEstelle Weyl
 
Triangle Visibility buffer
Triangle Visibility bufferTriangle Visibility buffer
Triangle Visibility bufferWolfgang Engel
 
Game Development for Nokia Asha Devices with Java ME #2
Game Development for Nokia Asha Devices with Java ME #2Game Development for Nokia Asha Devices with Java ME #2
Game Development for Nokia Asha Devices with Java ME #2Marlon Luz
 

Semelhante a MagickTiler at Toronto JUG (20)

MATLAB & Image Processing
MATLAB & Image ProcessingMATLAB & Image Processing
MATLAB & Image Processing
 
3rd Seminar
3rd Seminar3rd Seminar
3rd Seminar
 
3rd Seminar
3rd Seminar3rd Seminar
3rd Seminar
 
Mit6 094 iap10_lec05
Mit6 094 iap10_lec05Mit6 094 iap10_lec05
Mit6 094 iap10_lec05
 
Matlab Graphics Tutorial
Matlab Graphics TutorialMatlab Graphics Tutorial
Matlab Graphics Tutorial
 
Feature Extraction
Feature ExtractionFeature Extraction
Feature Extraction
 
2011/11/20 modul8 workshop at Apple Store Ginza
2011/11/20 modul8 workshop at Apple Store Ginza2011/11/20 modul8 workshop at Apple Store Ginza
2011/11/20 modul8 workshop at Apple Store Ginza
 
Intro to Python (High School) Unit #3
Intro to Python (High School) Unit #3Intro to Python (High School) Unit #3
Intro to Python (High School) Unit #3
 
Lecture 02 visualization and programming
Lecture 02   visualization and programmingLecture 02   visualization and programming
Lecture 02 visualization and programming
 
The Technology behind Shadow Warrior, ZTG 2014
The Technology behind Shadow Warrior, ZTG 2014The Technology behind Shadow Warrior, ZTG 2014
The Technology behind Shadow Warrior, ZTG 2014
 
Processing and Processing.js
Processing and Processing.jsProcessing and Processing.js
Processing and Processing.js
 
Rendering Art on the Web - A Performance compendium
Rendering Art on the Web - A Performance compendiumRendering Art on the Web - A Performance compendium
Rendering Art on the Web - A Performance compendium
 
Presentation: Plotting Systems in R
Presentation: Plotting Systems in RPresentation: Plotting Systems in R
Presentation: Plotting Systems in R
 
image_enhancement_spatial
 image_enhancement_spatial image_enhancement_spatial
image_enhancement_spatial
 
CS 354 Texture Mapping
CS 354 Texture MappingCS 354 Texture Mapping
CS 354 Texture Mapping
 
Generational Layered Canvas Mechanism for Collaborative Web Applications
Generational Layered Canvas Mechanism for Collaborative Web ApplicationsGenerational Layered Canvas Mechanism for Collaborative Web Applications
Generational Layered Canvas Mechanism for Collaborative Web Applications
 
CSS3 For WebKit: iPadDevCamp Presentation
CSS3 For WebKit: iPadDevCamp PresentationCSS3 For WebKit: iPadDevCamp Presentation
CSS3 For WebKit: iPadDevCamp Presentation
 
HTML 5_Canvas
HTML 5_CanvasHTML 5_Canvas
HTML 5_Canvas
 
Triangle Visibility buffer
Triangle Visibility bufferTriangle Visibility buffer
Triangle Visibility buffer
 
Game Development for Nokia Asha Devices with Java ME #2
Game Development for Nokia Asha Devices with Java ME #2Game Development for Nokia Asha Devices with Java ME #2
Game Development for Nokia Asha Devices with Java ME #2
 

Mais de aboutgeo

SEA CHANGE @ DM2Efinal conference, Pisa, Dec 11
SEA CHANGE @ DM2Efinal conference, Pisa, Dec 11SEA CHANGE @ DM2Efinal conference, Pisa, Dec 11
SEA CHANGE @ DM2Efinal conference, Pisa, Dec 11aboutgeo
 
Towards a Graph of Ancient World Data & an Ecosystem of Gazetteers
Towards a Graph of Ancient World Data & an Ecosystem of GazetteersTowards a Graph of Ancient World Data & an Ecosystem of Gazetteers
Towards a Graph of Ancient World Data & an Ecosystem of Gazetteersaboutgeo
 
Pelagios Ontologies & Tools - SNAP Lightning Talk
Pelagios Ontologies & Tools - SNAP Lightning TalkPelagios Ontologies & Tools - SNAP Lightning Talk
Pelagios Ontologies & Tools - SNAP Lightning Talkaboutgeo
 
Vom Wort zum Ort & Wieder Zurück - Pelagios @DHd 2014
Vom Wort zum Ort & Wieder Zurück - Pelagios @DHd 2014Vom Wort zum Ort & Wieder Zurück - Pelagios @DHd 2014
Vom Wort zum Ort & Wieder Zurück - Pelagios @DHd 2014aboutgeo
 
Pelagios - Das 'Link Netzwerk' für Altertumsdaten
Pelagios - Das 'Link Netzwerk' für AltertumsdatenPelagios - Das 'Link Netzwerk' für Altertumsdaten
Pelagios - Das 'Link Netzwerk' für Altertumsdatenaboutgeo
 
Linked Geo-Data and Early Geospatial Documents
Linked Geo-Data and Early Geospatial DocumentsLinked Geo-Data and Early Geospatial Documents
Linked Geo-Data and Early Geospatial Documentsaboutgeo
 
Pelagios OpenGLAM.AT
Pelagios OpenGLAM.ATPelagios OpenGLAM.AT
Pelagios OpenGLAM.ATaboutgeo
 
Towards Semi-Automatic Annotation of Toponyms on Old Maps
Towards Semi-Automatic Annotation of Toponyms on Old MapsTowards Semi-Automatic Annotation of Toponyms on Old Maps
Towards Semi-Automatic Annotation of Toponyms on Old Mapsaboutgeo
 
Collaborative Media Annotation with YUMA
Collaborative Media Annotation with YUMACollaborative Media Annotation with YUMA
Collaborative Media Annotation with YUMAaboutgeo
 
PELAGIOS Project Overview
PELAGIOS Project OverviewPELAGIOS Project Overview
PELAGIOS Project Overviewaboutgeo
 
JCDL 2011: Semantically Augmented Annotations in Digitized Map Collections
JCDL 2011: Semantically Augmented Annotations in Digitized Map CollectionsJCDL 2011: Semantically Augmented Annotations in Digitized Map Collections
JCDL 2011: Semantically Augmented Annotations in Digitized Map Collectionsaboutgeo
 
Post-Its and Placemarks
Post-Its and PlacemarksPost-Its and Placemarks
Post-Its and Placemarksaboutgeo
 
CartoHeritage 2011: Annotations, Tags and Linked Data
CartoHeritage 2011: Annotations, Tags and Linked DataCartoHeritage 2011: Annotations, Tags and Linked Data
CartoHeritage 2011: Annotations, Tags and Linked Dataaboutgeo
 

Mais de aboutgeo (13)

SEA CHANGE @ DM2Efinal conference, Pisa, Dec 11
SEA CHANGE @ DM2Efinal conference, Pisa, Dec 11SEA CHANGE @ DM2Efinal conference, Pisa, Dec 11
SEA CHANGE @ DM2Efinal conference, Pisa, Dec 11
 
Towards a Graph of Ancient World Data & an Ecosystem of Gazetteers
Towards a Graph of Ancient World Data & an Ecosystem of GazetteersTowards a Graph of Ancient World Data & an Ecosystem of Gazetteers
Towards a Graph of Ancient World Data & an Ecosystem of Gazetteers
 
Pelagios Ontologies & Tools - SNAP Lightning Talk
Pelagios Ontologies & Tools - SNAP Lightning TalkPelagios Ontologies & Tools - SNAP Lightning Talk
Pelagios Ontologies & Tools - SNAP Lightning Talk
 
Vom Wort zum Ort & Wieder Zurück - Pelagios @DHd 2014
Vom Wort zum Ort & Wieder Zurück - Pelagios @DHd 2014Vom Wort zum Ort & Wieder Zurück - Pelagios @DHd 2014
Vom Wort zum Ort & Wieder Zurück - Pelagios @DHd 2014
 
Pelagios - Das 'Link Netzwerk' für Altertumsdaten
Pelagios - Das 'Link Netzwerk' für AltertumsdatenPelagios - Das 'Link Netzwerk' für Altertumsdaten
Pelagios - Das 'Link Netzwerk' für Altertumsdaten
 
Linked Geo-Data and Early Geospatial Documents
Linked Geo-Data and Early Geospatial DocumentsLinked Geo-Data and Early Geospatial Documents
Linked Geo-Data and Early Geospatial Documents
 
Pelagios OpenGLAM.AT
Pelagios OpenGLAM.ATPelagios OpenGLAM.AT
Pelagios OpenGLAM.AT
 
Towards Semi-Automatic Annotation of Toponyms on Old Maps
Towards Semi-Automatic Annotation of Toponyms on Old MapsTowards Semi-Automatic Annotation of Toponyms on Old Maps
Towards Semi-Automatic Annotation of Toponyms on Old Maps
 
Collaborative Media Annotation with YUMA
Collaborative Media Annotation with YUMACollaborative Media Annotation with YUMA
Collaborative Media Annotation with YUMA
 
PELAGIOS Project Overview
PELAGIOS Project OverviewPELAGIOS Project Overview
PELAGIOS Project Overview
 
JCDL 2011: Semantically Augmented Annotations in Digitized Map Collections
JCDL 2011: Semantically Augmented Annotations in Digitized Map CollectionsJCDL 2011: Semantically Augmented Annotations in Digitized Map Collections
JCDL 2011: Semantically Augmented Annotations in Digitized Map Collections
 
Post-Its and Placemarks
Post-Its and PlacemarksPost-Its and Placemarks
Post-Its and Placemarks
 
CartoHeritage 2011: Annotations, Tags and Linked Data
CartoHeritage 2011: Annotations, Tags and Linked DataCartoHeritage 2011: Annotations, Tags and Linked Data
CartoHeritage 2011: Annotations, Tags and Linked Data
 

Último

Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 

Último (20)

Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 

MagickTiler at Toronto JUG

  • 1. M agickTiler A Java tool and embeddable library for converting images into formats suitable for publishing as zoomable Web images. http://code.google.com/p/magicktiler/
  • 2. Image Tiling B asics – The P yramid Y Y/2 Y/4 Y/8 X X/2 X/4 X/8 (some math...) No. of zoom levels = ⌈ log 2 max { x tilewidth , y tileheight }⌉ + 1
  • 3. Tiling Schemes • Zoomify • TM S • Google M aps • M S D eep Zoom • … Variations are in the details… tile naming, directory layout, file formats and sizes, descriptor files, handling of irregular tile sizes.
  • 4. TM S 1 <zo o m -level> <c o lum n> ro w .jpg / png ro w .jpg / png … /0/2.jpg /1/2.jpg /2/2.jpg /0/1.jpg /1/1.jpg /2/1.jpg /0/0.jpg /1/0.jpg /2/0.jpg Tile (x and y) M U S T be n x tilesize! B orders M U S T be top/right. 1 as supported by O penLayers
  • 5. Zoomify <T ileG ro upX > <level>-<c o l>-<ro w >.jpg <level>-<c o l>-<ro w >.jpg … -0-0.jpg -1-0.jpg -2-0.jpg -0-1.jpg -1-1.jpg -2-1.jpg -0-2.jpg -1-2.jpg -2-2.jpg Irregular tiles M U S T be bottom/ right.
  • 6. Zoomify: TileGroups (The Tricky P art) ● Starting with the lowest zoom level (1x1 tile) ● Count! (left->right, top->bottom) ● Start a new TileGroup after 256 tiles! 5 6 7 1 2 0 8 9 10 3 4 11 12 13
  • 7. Google M aps • R esize the longest dimension to the closest 256n² • Square the image using background-colour bufer • Tiles are square (256x256) • Tiles per zoomlevel: 4zoomlevel <o ut-dir> -0-0 -1-0 -2-0 -3-0 <level>-<c o l>-<ro w >.jpg <level>-<c o l>-<ro w >.jpg -0-1 -1-1 -2-1 -3-1 … -0-2 -1-2 -2-2 -3-2 -0-3 -1-3 -2-3 -3-3
  • 8. P erformance O ptimizations • Striping – The base image is cut into either horizontal or vertical stripes to avoid operations on 'large' images – For each zoom level, the stripes are generated based on the stripes of the previous zoomlevel (stripes are merged) • Single GM/IM operations where possible
  • 9. C LI usage: java -jar magicktiler [-b <color>] [-f <format>] [-g] [-h] -i <input> [-l] [-o <output>] [-p] [-q <quality>] -s <scheme> [-v] -b <color> background color, default=white -f <format> tile format ('jpeg' or 'png'), default=jpeg -g displays the GUI (ignores all other parameters) -h displays this help text -i <input> mandatory input file or directory -l writes reporting information to a log file -o <output> output directory (for tilesets) or file (for PTIF), default=. -p generate an HTML preview file -q <quality> JPEG compression quality (0 - 100), default=75 -s <scheme> mandatory tiling scheme ('tms', 'zoomify', 'gmap' or 'ptif') -v validate the input instead of generating a tileset Example: java -jar magicktiler.jar -s tms -f jpeg -i image.tif -p