zenphoto forums » Plugins

thumbnail for video plugin

(5 posts)
  • Started 3 years ago by mactable
  • Latest reply from mactable
  1. mactable

    Member
    Joined: Dec '08
    Posts: 26

    hi,

    for example, my video clip named myvideo.mp4

    zenphoto always look for myvideo.jpg (or .png or other supported image format) in the same album foler, if it does exist, then create small thumbnail as usual.

    in my case, my albums folder are the mirror of my photo/video repository (headquarter), i would like to keep my repository clean and pure, so i would not like any extra item exists.

    my question is, can we put myvideo.jpg in cache folder instead of album folder, and make zenphoto to look for it for creating small thuumbnail as usual?

    thx a lot in advance!

    Posted 3 years ago #
  2. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,514

    You mean you want to replace the default video thumb image? You can either replace the image in zp-core/plugins/class-video/class-video/multimediaDefault.png or even better you can place an image of the same name within the images folder within your theme's folder.

    Don't forget to read the Forum rules and usage resources
    Posted 3 years ago #
  3. mactable

    Member
    Joined: Dec '08
    Posts: 26

    hi acrylian,

    sorry i am not meaning to replace zenphoto default logo, i would like to change the way which zenphoto looks for videothumb of video.

    please consider the following case:
    i have a video at:
    /album/subalbum/myvideo.mp4

    if i would like to let zenphoto to create thumbnail for myvidep.mp4, i have to place a extra image file, myvido.jpg together with myvide.mp4, that is /album/subalbum/myvideo.jpg

    since i would like to keep my album clean, and do not want any extra item in my album,
    so i would like to place myvideo.jpg outside from /album/subalbum, for example, place to /cache/album/subalbum/myvideo.jpg is a good practice.

    my question is, how to make zenphoto to change the location which look for myvideo.jpg (or .png etc) for creating thumbnail.

    sorry for my poor english and made you misunderstand what i said.

    Posted 3 years ago #
  4. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,514

    I don't understand why it is an issue to have an image of the same name within the album. It will not be displayed except for the thumbnail. Anyway, if you want to change that behaviour and think it is worth the work you will have to write your own function to search for an image elsewhere and modify your theme to use it instead of the standard way.

    Don't forget to read the Forum rules and usage resources
    Posted 3 years ago #
  5. mactable

    Member
    Joined: Dec '08
    Posts: 26

    hi acrylian,

    i understand, thx for your advice.

    Posted 3 years ago #

RSS feed for this topic

Reply

You must log in to post.