KOffice – TDE office suite
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.7 KiB

  2. Import/Export & ImageMagick
  3. Import/Export is currently hardcoded to use ImageMagick and the RGB colormodel.
  4. Additionally, export is broken and even when working, only supported exporting
  5. to images with one layer.
  6. Kimgio is not suitable for Chalk since it only supports importing images as one
  7. QImage.
  8. The new design should support plugins instead of hardcoded filters, so we can
  9. add an ImageMagick plugin, an openExr plugin or any other kind of image readers.
  10. Issues:
  11. * conflicts -- more than one plugin might want to support JPEG, for instance.
  12. * configuration -- compression settings, optional flattening, adding
  13. profiles, colorspace conversion
  14. * identification -- no sane way to distinguish a particular type of tiff from
  15. another type, for instance.
  16. * colormodel integration -- basically, there are cmyk, rgb and grayscale
  17. images in a variety of bit depths (e.g., openexr supports 16 bit and half).
  18. Colorspaces must interpret the file data to build Chalk pixels and must
  19. unpack chalk pixels to a format a file exporter (e.g, ImageMagick pixel
  20. packets) can work with. This means that plugins can depend on the presence
  21. of other plugins.
  22. * Import/export should be lossless -- i.e., all extra information any file
  23. format may attach to the image should be kept around and used on export.
  24. Examples are Exif data and profiles, but also Gimp comments.
  25. KisAnnotation contains metadata about an image that is grabbed from
  26. a file, such as exif data or TIFF tags and that we should be able to save.
  27. KisAnnotation
  28. KisAnnotation(QString type, QString annotation);
  29. KisAnnotation(QString type, QByteArray annotation);;