
Recherche avancée
Médias (1)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
Autres articles (71)
-
Modifier la date de publication
21 juin 2013, parComment changer la date de publication d’un média ?
Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
Dans la rubrique "Champs à ajouter, cocher "Date de publication "
Cliquer en bas de la page sur Enregistrer -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
Sur d’autres sites (5850)
-
CJEU rules US cloud servers don’t comply with GDPR and what this means for web analytics
17 juillet 2020, par Jake Thornton -
Is there any option to create a single frame thumbnail for a video in java ?
13 juin 2020, par Prashanth ShyamprasadIs there any option to create a single frame thumbnail for a video in java with java libraries.



I am using Jave2 in my application. Does Jave2 provides any such options ? I didn't find a single documentation related to this.



I heard Xuggler provides some options. But I don't want to move to Xuggler if Jave2 provides the facility as I'm already using Jave2 for many purposes extensively. Adding a full library like Xuggler is an overhead. Replacing Jave2 with Xuggler also is a tedious task



If any light weight thumbnail feature specific utility library is available, then that should also be fine.


-
About image opacity
23 octobre 2013, par Mikko Koppanen — ImagickThere is a common misconception that Imagick::setImageOpacity() would work to reduce the opacity of the image. However, as the name says the method actually sets the opacity throughout the image and thus affects also transparent areas.
To demonstrate let’s first look at this image of a red circle on a transparent background :
Now, let’s apply setImageOpacity on the image :
-
< ?php
-
$im = new Imagick (’red-circle.png’) ;
-
$im->setImageOpacity (0.5) ;
-
$im->writeImage (’red-circle-setopacity.png’) ;
-
?>
As we can see from the resulting image the transparent background is affected as well.
In order to actually reduce the opacity of the opaque parts Imagick::evaluateImage can be used instead :
-
< ?php
-
$im = new Imagick (’red-circle.png’) ;
-
-
/* Divide the alpha channel value by 2 */
-
$im->evaluateImage(Imagick: :EVALUATE_DIVIDE, 2, Imagick: :CHANNEL_ALPHA) ;
-
$im->writeImage (’red-circle-divide.png’) ;
-
?>
And here are the results :
As the background is already fully transparent so the divide operation causes no changes to it.
Similar example is available in the PHP manual http://php.net/imagick.evaluateimage and I added a note to setImageOpacity page as well (at the time of writing it has not synced to documentation mirrors yet).
-