Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-10972

Image inserted in rich content with name such as toto.jpg_300_200 cannot be displayed

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Critical Critical
    • 4.4.7, 4.5.0
    • 4.4.6
    • None
    • None
    • 4.5 M7

      When images(s) named as toto.jpg_588x1680 are inserted in Rich content these images cannot be retreived to be displayed.

          [CMS-10972] Image inserted in rich content with name such as toto.jpg_300_200 cannot be displayed

          We do not support inserting images not ending with unrecognized extension (gif/jpg/png/...).
          Such images should have been there for a while and should be renamed in order to be resized in Ametys 4.4+

          Cédric Damioli added a comment - We do not support inserting images not ending with unrecognized extension (gif/jpg/png/...). Such images should have been there for a while and should be renamed in order to be resized in Ametys 4.4+

          David Cartier-Michaud added a comment - - edited

          Script pour détecter et compter les fichiers (images) mal nommés :

            
            var count = 0;
            const nodes = Repository.query("//element(*, nt:file)", false);
            while (nodes.hasNext())
            {
              const node = nodes.next();
              const name = node.getName();
              if (/.+_\d+x\d+$/.test(name))
              {
                print(node);
                count++;
              }
            }
            print(count + " fichiers mal nommés."); 
            
          

          David Cartier-Michaud added a comment - - edited Script pour détecter et compter les fichiers (images) mal nommés : var count = 0; const nodes = Repository.query( " //element(*, nt:file)" , false ); while (nodes.hasNext()) { const node = nodes.next(); const name = node.getName(); if (/.+_\d+x\d+$/.test(name)) { print(node); count++; } } print(count + " fichiers mal nommés." );

            cedric Cédric Damioli
            dcartier David Cartier-Michaud
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: