Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Distinguish video files from image files  (Read 365 times)

0 Members and 1 Guest are viewing this topic.

Hanna.

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 155
  • webstar
Distinguish video files from image files
« on: January 05, 2019, 06:41:50 am »

Hi all, in connection to my thread on how to successfully upload .mp4 videos and add thumbnails to them, I thought I'd separate the cosmetics so that it does not go off topic with all my requests/wishes. That thread is awating assistance on how to turn off autoplay.

Now, for the cosmetic part: It is very important to me to be clear on what kind of files my viewer is dealing with (I have above 50,000 images and I am now expanding to videos as well)

-- I need my video files (mp4) to be recognized even on the outside - customizable, somewhere indicate that the video files-thumbnails are links to video, not image.

My idea would be to put a small video icon somewhere in the thumbnail area and/or do the same with the photos (or the option too). This is probably a function that needs to be set up in my theme.php but I am hoping someone will have time to assist me.

Thank you!
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1047
Re: Distinguish video files from image files
« Reply #1 on: January 05, 2019, 12:22:59 pm »

On a given gallery, you could always use the same image of the star (that you've overlaid with a video icon) for each video thumbnail. That would be much easier and less messy than picking a frame from each video to use as a thumbnail. And I could add a feature to ThumbPlus to display the media type when the dimensions are 0x0.
Logged

Hanna.

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 155
  • webstar
Re: Re: Distinguish video files from image files
« Reply #2 on: January 05, 2019, 05:39:11 pm »

On a given gallery, you could always use the same image of the star (that you've overlaid with a video icon) for each video thumbnail. That would be much easier and less messy than picking a frame from each video to use as a thumbnail. And I could add a feature to ThumbPlus to display the media type when the dimensions are 0x0.

That would work in the case of separation video files from images, but I will be having albums with a grid of thumbnails like image, image, image, video, image, video. It is highly important to make a distinction.

I don't mind making the thumbnails for video manually, but it would help if somewhere I could flag you know "hey, this is a video" - because majority of my files will be images.
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1047
Re: Distinguish video files from image files
« Reply #3 on: January 05, 2019, 06:22:07 pm »

Right ...
So you just use something like the attached for every video thumbnail ... with other images or not.  That, combined with it saying 'Video' in the dimensions area, should remove all doubt whether it is a video or not.
Logged

Hanna.

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 155
  • webstar
Re: Distinguish video files from image files
« Reply #4 on: January 05, 2019, 06:29:04 pm »

That looks like a watermark? Perhaps you are right. It would work.

My thumbnails are made/cut out by coppermine up to max height/width of 360px - however, I have a CSS line resizing them on display in their thumbnails class to smaller. I was hoping to get that film icon like a layer, a div on top thumbs that are video files. (example in attachment)

In my attachment where it says "2 files" - something like that.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 21 queries.