Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-16279

Wrong ContentType of resized images when the mimetype has changed during the resizing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 9.8.1, 10.11.3, 11.2
    • Image
    • None
    • Unknown

    Description

      The image plugin is applying a new filename ending in .png when any original image is resized that is not a jpeg one.

      This happen for .gif images with the default setup, while a gif image is still returned, and thanks to the attachment mimetype that is unchanged, is sent with a .png filename and a image/gif mimetype.

      If you customize the image processor to support svg images, you have no other choice then returning png resized images (to follow the naming change and inability to decide another way), but the png returned are served with an image/svg+xml mimetype.

      So, with this issue we are having two problem in opposition:

      1. GIF image are renamed PNG and served properly thanks to image/gif mimetype
      2. Image really resized into PNGĀ  are unproperly served because their mimetype is kept

      The best would be to delegate this work to the image processor, which is the one who knows best what it does.

      Attachments

        Activity

          People

            Unassigned Unassigned
            softec Denis Gervalle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: