Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-70939

Incorrect downsize image

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_39_STABLE

      Description

       

      | id   | contenthash                              | pathnamehash                             | contextid | component | filearea | itemid    | filepath | filename                | userid | filesize | mimetype   | status | source                                                        | author | license           | timecreated | timemodified | sortorder | referencefileid |
      +------+------------------------------------------+------------------------------------------+-----------+-----------+----------+-----------+----------+-------------------------+--------+----------+------------+--------+---------------------------------------------------------------+--------+-------------------+-------------+--------------+-----------+-----------------+
      | 3757 | d2db89db78cf9677319562947784a50223112ff1 | ed7748c15bb95e0a452e0fe1b62a2b5326e9332a |         5 | user      | draft    | 602275045 | /        | vegetacaocaatinga.jpg   |      2 |    91867 | image/jpeg |      0 | O:8:"stdClass":1:{s:6:"source";s:21:"vegetacaocaatinga.jpg";} | NULL   | allrightsreserved |  1613646184 |   1613646184 |         0 |            NULL |
      | 3760 | d2db89db78cf9677319562947784a50223112ff1 | 8d9d3d63632a6a5bfad7a73cd5390e4de01627b0 |      5017 | mod_label | intro    |         0 | /        | vegetacaocaatinga.jpg   |      2 |    91867 | image/jpeg |      0 | vegetacaocaatinga.jpg                                         | NULL   | allrightsreserved |  1613646184 |   1613646184 |         0 |            NULL |
      | 3759 | 299aaa0cab1ca86b6da49f9a3d10746ec667748b | 678defc4c7a5cd1bc6814188425ea518a5c8c0a8 |         5 | user      | draft    | 602275045 | /        | s_vegetacaocaatinga.jpg |   NULL |   237963 | image/jpeg |      0 | NULL                                                          | NULL   | NULL              |  1613646184 |   1613646184 |         0 |            NULL |
      | 3762 | 299aaa0cab1ca86b6da49f9a3d10746ec667748b | 4fee9b6cb3588095ad5b0a88cce2522697895718 |      5017 | mod_label | intro    |         0 | /        | s_vegetacaocaatinga.jpg |   NULL |   237963 | image/jpeg |      0 | NULL                                                          | NULL   | NULL              |  1613646184 |   1613646184 |         0 |            NULL |
      
      

      The id 3760 represents the original file download from https://static.todamateria.com.br/upload/ve/ge/vegetacaocaatinga.jpg

      I dropdown to the course, in html is shown

      <img alt="vegetacaocaatinga.jpg" src="https://avadev.furg.br/pluginfile.php/5017/mod_label/intro/s_vegetacaocaatinga.jpg" width="400" height="228.57142857143" id="yui_3_17_2_1_1613646098848_962">
      

      Problems:

      1 - The smaller representation of the image is with mime type jpeg but the file is in png format

      file --mime-type /storage/moodledata/filedir/29/9a/299aaa0cab1ca86b6da49f9a3d10746ec667748b
      /storage/moodledata/filedir/29/9a/299aaa0cab1ca86b6da49f9a3d10746ec667748b: image/png
       
      file --mime-type /storage/moodledata/filedir/d2/db/d2db89db78cf9677319562947784a50223112ff1
      /storage/moodledata/filedir/d2/db/d2db89db78cf9677319562947784a50223112ff1: image/jpeg
      

      2 - The file size of the small representation is 2.5 times larger than the original. In this case it would be more useful to use the original image.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            bernardo Bernardo Silva
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Matteo Scaramuccia, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: