12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- # Copyright (c) 2015 Ultimaker B.V.
- # Cura is released under the terms of the AGPLv3 or higher.
- from . import ImageReader
- from UM.i18n import i18nCatalog
- i18n_catalog = i18nCatalog("cura")
- def getMetaData():
- return {
- "plugin": {
- "name": i18n_catalog.i18nc("@label", "Image Reader"),
- "author": "Ultimaker",
- "version": "1.0",
- "description": i18n_catalog.i18nc("@info:whatsthis", "Enables ability to generate printable geometry from 2D image files."),
- "api": 3
- },
- "mesh_reader": [
- {
- "extension": "jpg",
- "description": i18n_catalog.i18nc("@item:inlistbox", "JPG Image")
- },
- {
- "extension": "jpeg",
- "description": i18n_catalog.i18nc("@item:inlistbox", "JPEG Image")
- },
- {
- "extension": "png",
- "description": i18n_catalog.i18nc("@item:inlistbox", "PNG Image")
- },
- {
- "extension": "bmp",
- "description": i18n_catalog.i18nc("@item:inlistbox", "BMP Image")
- },
- {
- "extension": "gif",
- "description": i18n_catalog.i18nc("@item:inlistbox", "GIF Image")
- }
- ]
- }
- def register(app):
- return { "mesh_reader": ImageReader.ImageReader() }
|