You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

A special treatment for 3d models in glb/gltf format is implemented in the Binaries Service. 

If URLs to files of this format are submitted to the service then these files will not only be downloaded and saved. A preview image of the model contained in the file is generated and exported to the IIIF Image server. Therefore the same reference-id used to download the model can be used to retrieve a preview image. 

This preview generation happens on the cluster nodes. A Chrome browser instance is started on a virtual framebuffer device. The model is loaded by the browser and then a screenshot of the browser is taken. 


In order for this to work the follwing packages need to be installed on the cluster nodes: 


sudo yum install npm xorg-x11-server-Xvfb atk java-atk-wrapper at-spi2-atk gtk3 libXt ImageMagick

# Register and start Xvfb service 
sudo echo "
[Unit]
Description=Xvfb headless plotting
After=network.target

[Service]
User=root
ExecStart=/usr/bin/Xvfb :0 -screen 0 1280x1024x24

[Install]
WantedBy=multi-user.target
Alias=Xvfb.service
Alias=xvfbd.service
" > /etc/systemd/system/xvfb.service

sudo systemctl daemon-reload
sudo systemctl enable xvfb
sudo systemctl start xvfb



  • No labels