
Recherche avancée
Autres articles (58)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (5094)
-
Evolution #3977 (Nouveau) : Agrandir les images du contenu
1er août 2017, par nico d_Salut,
je propose d’ajouter ces sélecteurs en standard dans la config, en plus de ceux sur le portfolio :
#content a[href$='.jpg'], #content a[href$='.png'], #content a[href$='.gif'], ...
Ça permettrait de pouvoir agrandir des images avec
[<img13193>->img13193]</img13193>
Bon, l’id #content est directement lié à la structure de la dist, et pas forcément repris par tous les squelettes, mais on ne peut pas non plus appliquer la mediabox sur toutes les images du site.
Le top serait que les modèles
appliquent eux même automatiquement un lien mediabox sur les images d’une certaine dimension, comme le fait le plugin medoc.
-
Revision 36506 : Réhabilitation du comportement habituel du modèle gravatar, qui fournit ...
21 mars 2010, par romy@… — LogRéhabilitation du comportement habituel du modèle gravatar, qui fournit des images toutes de la même dimension.
-
Paperclip Video Skewed (does not maintain aspect ratio)
3 septembre 2015, par zreitanoThe video uploaded does not maintain aspect ratio. In the readme (paperclip av-transcoder) it says, " ’ !’ - Keep the same aspect of the image/video, but with the passed dimension." I have also tried the other options(<># !) and none of them effect the size of the video.
My goal is to be able to be able to have the video returned in a square (while maintaining the aspect ratio). Cropping from the center would be ideal, as well.
Any help would be greatly appreciated. I included my code below.
class Video < Post
Paperclip.interpolates :id do |attachment, style|
attachment.instance.id
end
#basename/extension is paperclip interpolation from attachment, can write own interpolations as needed
# have to link /usr/local/bin to the linuxbrew version of ffmpeg
has_attached_file :video, path: "/posts/videos/:id/:style.:extension",
:styles => {
:square => {:geometry => "500x500!", :format => 'mp4', :streaming => true }
},
:processors => [:transcoder]
validates_attachment :video, :presence => true,
:content_type => { content_type: ["video/mp4", "video/mov", "video/mpeg","video/mpeg4", "video/quicktime"] }
def video_url
video = self.video
if video.present?
return video.url(:square)
end
end
end