Skip to content

Utils for TinyWorld: NASA WorldWind Cache, ImageMagick, JRE ...

Notifications You must be signed in to change notification settings

asaintsever/tinyworld-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Utils for TinyWorld

JRE distros

Supported JRE distributions are available here. They are included in the portable and AppImage packages of TinyWorld.

ImageMagick with HEIF/HEIC support

Linux x64/arm64 and Windows x64 static binaries of ImageMagick 7.1.0 with HEIF/HEIC support can be found here.

Currently, TinyWorld only relies on ImageMagick for thumbnails generation from HEIF photos.

On macOS, install ImageMagick with Homebrew (HEIF/HEIC support is enabled by default):

brew install imagemagick

Linux build

Linux binary has been compiled from source as existing packages do not come with HEIC support.

Instructions to build static binary:

# Install libs for HEIF (HEIC) support
$ sudo apt install libjpeg-dev libheif-dev libheif1

# Clone latest tag
$ git clone --depth 1 --branch 7.1.0-46 https://github.com/ImageMagick/ImageMagick.git
$ cd ImageMagick

# Configure build to generate static binaries. Enable HEIC support
$ ./configure --enable-static=yes --enable-shared=no --prefix=/usr --with-jpeg=yes --with-heic=yes --without-magick-plus-plus --without-perl --with-quantum-depth=16

# Compile
$ make

# Install in a temporary folder
$ mkdir -p /tmp/MyIM
$ make install DESTDIR=/tmp/MyIM

# Check HEIC support is enabled
# Make sure both 'jpeg' and 'heic' are listed in 'Delegates (built-in)'
$ cd /tmp/MyIM/usr/bin
$ ./magick -version
Version: ImageMagick 7.1.0-46 Q16-HDRI x86_64 5ef3d4d66:20220816 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP(4.5)
Delegates (built-in): bzlib djvu fontconfig freetype gvc heic jbig jng jpeg lcms lqr lzma openexr pangocairo png raqm raw tiff webp x zip zlib
Compiler: gcc (11.2)

Generate thumbnail from HEIF photo

# Generate a 160x160 thumbnail
magick <your HEIF file> -thumbnail 160x160 jpg:<your thumbnail name>.jpg

WorlWind Cache for TinyWorld

This repo hosts a NASA WorldWind cache to use as a starter on any WorldWind-based application, e.g. TinyWorld. It helps to get first tiles, all the most if you don't have a good Internet connection.

The cache is available for several tiles format:

  • DDS
  • JPEG and PNG (depends on the layer)

For each layer, tiles format is defined via the ImageFormat tag in the corresponding layer's config file (e.g. of layers' config files: Earth/BMNGWMSLayer2.xml, Earth/LandsatI3WMSLayer2.xml).

WorlWind Cache starter can be downloaded here.

About

Utils for TinyWorld: NASA WorldWind Cache, ImageMagick, JRE ...

Topics

Resources

Stars

Watchers

Forks