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

Batch convert tEXt PNG badges to iTXt PNG badges

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9
    • Fix Version/s: None
    • Component/s: Badges
    • Labels:
    • Affected Branches:
      MOODLE_39_STABLE

      Description

      Badges metadata is written when the badge is issued. And never touched after that.

      Old badges have metadata stored into tEXt field. New ones (see MDL-49103) into iTXt.

      Badges using the old tEXt field are unable to be uploaded to backpacks and other Badge facilities because iTXt is what the compliant products (via spec) are expecting.

      To have a tEXt to iTXt converter may be useful (step 1).

      Then, once available and able to convert any PNG (replacing or adding the metadata, not sure at this moment...) we could apply it to various, complementary, solutions. I'd call this (step 2):

      • Create a CLI able to convert any badge.
      • Create a task able to go processing all the old badges.
      • Create an UI, so every user is able, when managing their own badges in Moodle, to apply for the conversion.
      • ....

      That would enable automagically far better integration with other Badge-compliant tools (Badgr included, right now we cannot upload any old PNG because of this).

      Just an idea, with 2 steps, ciao

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Yuliya Bozhko, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: