__init__.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright (c) 2015 Ultimaker B.V.
  2. # Cura is released under the terms of the AGPLv3 or higher.
  3. from . import ImageReader
  4. from UM.i18n import i18nCatalog
  5. i18n_catalog = i18nCatalog("cura")
  6. def getMetaData():
  7. return {
  8. "plugin": {
  9. "name": i18n_catalog.i18nc("@label", "Image Reader"),
  10. "author": "Ultimaker",
  11. "version": "1.0",
  12. "description": i18n_catalog.i18nc("@info:whatsthis", "Enables ability to generate printable geometry from 2D image files."),
  13. "api": 3
  14. },
  15. "mesh_reader": [
  16. {
  17. "extension": "jpg",
  18. "description": i18n_catalog.i18nc("@item:inlistbox", "JPG Image")
  19. },
  20. {
  21. "extension": "jpeg",
  22. "description": i18n_catalog.i18nc("@item:inlistbox", "JPEG Image")
  23. },
  24. {
  25. "extension": "png",
  26. "description": i18n_catalog.i18nc("@item:inlistbox", "PNG Image")
  27. },
  28. {
  29. "extension": "bmp",
  30. "description": i18n_catalog.i18nc("@item:inlistbox", "BMP Image")
  31. },
  32. {
  33. "extension": "gif",
  34. "description": i18n_catalog.i18nc("@item:inlistbox", "GIF Image")
  35. }
  36. ]
  37. }
  38. def register(app):
  39. return { "mesh_reader": ImageReader.ImageReader() }