
Recherche avancée
Autres articles (65)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Submit enhancements and plugins
13 avril 2011If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.
Sur d’autres sites (6929)
-
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).
-
-
H264 Encoders other than ffmpeg x264
5 septembre 2016, par 0pclThe iPhone app I am working on captures images in series within certain user-defined time interval, I am looking for a way to combine these images into H264 encoded videos. I have done some research on Google, it looks like I will have to use something like ffmpeg/mencoder on iPhone ? (Also found someone ported ffmpeg to iPhone, ffmpeg4iPhone)
However, I found that x264 is under GPL license, and requires me to open source my project if I use ffmpeg. Also found some people suggested to use Ogg Theora, but I will need to port it to iPhone if I use it. (Which I am not sure how to do it now).
Is there any workaround for this ? Any ideas ? Thanks.
-
H264 Encoders other than ffmpeg x264
5 septembre 2016, par 0pclThe iPhone app I am working on captures images in series within certain user-defined time interval, I am looking for a way to combine these images into H264 encoded videos. I have done some research on Google, it looks like I will have to use something like ffmpeg/mencoder on iPhone ? (Also found someone ported ffmpeg to iPhone, ffmpeg4iPhone)
However, I found that x264 is under GPL license, and requires me to open source my project if I use ffmpeg. Also found some people suggested to use Ogg Theora, but I will need to port it to iPhone if I use it. (Which I am not sure how to do it now).
Is there any workaround for this ? Any ideas ? Thanks.