Giter VIP home page Giter VIP logo

Comments (4)

J9rem avatar J9rem commented on June 18, 2024

En fait, c'est lié à la bibliothèque utilisée pour redimensionner les images : pour les png, lors du redimensionnement, il faut choisir une couleur de fond.
Il a été choisi pour le cas général, de choisir la couleur blanche par défaut (et éviter le fond noir) :

if ($imgTrans->resize(intval($newWidth), intval($newHeight), ZEBRA_IMAGE_CROP_CENTER, '#FFFFFF')) {
$imgTrans->source_path = $tempFileName;
}
$imgTrans->target_path = $image_dest;
}
}
$result = $imgTrans->resize(intval($largeur), intval($hauteur), ZEBRA_IMAGE_NOT_BOXED, '#FFFFFF');
(#FFFFFF)

C'est lié aux échanges #641 et #948

Donc c'est pas vraiment un bug mais un comportement désiré pour éviter les soucis de fond noir.
Nous pourrions nous concerter pour définir un paramètre de plus dans wakka.config.php pour pouvoir choisir une couleur de fond pour les png, mais bon, .... il nous faudrait pour ceci un ou une faciliateurice pour arriver à la bonne décision et un ou une développeureuse disponible, ...

from yeswiki.

MelanieMichel avatar MelanieMichel commented on June 18, 2024

question naive : avez-vous tenté le transparent : #fff0 à tout hasard ?

from yeswiki.

J9rem avatar J9rem commented on June 18, 2024

La librairie doit recevoir une couleur qui fonctionne à la fois pour jpeg et png.
Après, si on un dev prêt à creuser la question , ...

from yeswiki.

mrflos avatar mrflos commented on June 18, 2024

@MelanieMichel selon la doc, mettre -1 à la place du code couleur de l'image, permettrait de préserver la transparence et de mettre du blanc pour les formats non transparents.
Pourrais tu tester en mettant -1 à la place de '#FFFFFF' à la ligne 1142 citée par @J9rem et tester si ca marche ?

from yeswiki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.