Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1] 2 3   Go Down

Author Topic: Custom Thumbnail for cpg1.5.x  (Read 85387 times)

0 Members and 1 Guest are viewing this topic.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Custom Thumbnail for cpg1.5.x
« on: June 22, 2009, 12:20:23 pm »

Upload custom thumbnails for your pictures and files (videos, documents, audio files, etc.). It will display a new button under the file in the intermediate/displayimage.php view. Thumbnails will be automatically downsized.
« Last Edit: December 22, 2010, 03:49:10 pm by Αndré »
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Custom Thumbnail for cpg1.5.x
« Reply #1 on: December 30, 2009, 11:02:58 am »

Version 1.2 currently has English and German output.
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Custom Thumbnail for cpg1.5.x
« Reply #2 on: December 30, 2009, 12:29:31 pm »

french lang file attached
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Custom Thumbnail for cpg1.5.x
« Reply #3 on: December 30, 2009, 01:55:18 pm »

Thanks. Added to svn.
Logged

Timos-Welt

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 808
    • Timos-Welt
Re: Custom Thumbnail for cpg1.5.x
« Reply #4 on: March 09, 2010, 10:53:33 am »

Upload of thumbs doesn't work ATM with installed SEF_URL plugin. So uninstall SEF plugin before uploading custom thumbs. Afterwards you may install it again.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Custom Thumbnail for cpg1.5.x
« Reply #5 on: March 12, 2010, 02:11:31 pm »

Version 1.6 visually integrates to the new file menu (buttonlist).
Logged

baldwinkam

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Custom Thumbnail for cpg1.5.x
« Reply #6 on: May 12, 2010, 12:31:17 pm »

hi everyone, i'm new here, just wondering what does it mean " It will display a new button under the file in the intermediate/displayimage.php view"?

do i just need to upolad the whole "custom thumb" folder to the plugin folder?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Logged

Mister Hahn

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Custom Thumbnail for cpg1.5.x
« Reply #8 on: June 09, 2010, 02:43:29 am »

Hi! I would like to ask: is there any chance that you might support the creation of "normal_" thumbnail and keeping the original version of the uploaded image as well, alongside the "thumb_" that is currently created by your plugin?

It occurs to me that using this plugin in combination with Flash Media Player, FMP uses the thumbnail produced by Custom Thumbnail. But it's always way too small compared to player dimensions and when the image is enlarged by FMP the result is ugly to see. I presume this can be workarounded increasing the thumbnail size setting in the coppermine configuration, but then it would be awful to navigate through albums and categories.

Having thumb_ and normal_ it'd be possible to navigate through albums and categories diplaying the smallest thumbnail (which is right for that task) and to set the FMP to use the intermediate or full preview image to be displayed inside the player (which i think it'd be more eye-candy for that task).

Anyway, thanks for creating this =)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Custom Thumbnail for cpg1.5.x
« Reply #9 on: June 09, 2010, 08:07:40 am »

What you are asking is possible. But if you'd create normal_ files, you have to adjust the FMP plugin to use that file. That is not a straightforward solution.

Instead, open codebase.php, find
Code: [Select]
resize_image($thumb, $thumb, $CONFIG['thumb_width'], $CONFIG['thumb_method'], $CONFIG['thumb_use']);and replace $CONFIG['thumb_width'] with your desired picture size.
Logged

Mister Hahn

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Custom Thumbnail for cpg1.5.x
« Reply #10 on: June 15, 2010, 01:09:57 am »

Hi Andrè, thanks for your advice.
The resizing part is ok, now i can have uniform AND custom size for thumbnails customized with this plugin.
However, there's still a layout problem: for any size that is reasonable for a video-preview thumbnail (400-500px), although browsing through gallery pages is fine because actual thumbnails get downscaled with height and width arguments of <img> tag, the filmstrip in the displayimage.php page you can browse next and previous videos with is unusable, because it displays full-size thumbnails (as specified replacing $CONFIG['thumb_width']), and this leads to no more than one thumbnail displayed correctly instead of 5, which are displayed cut.

Any more advice?

Thanks anyway =)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Custom Thumbnail for cpg1.5.x
« Reply #11 on: June 15, 2010, 08:28:53 am »

Feel free to modify the plugin, so it creates regular thumbnails and a video thumbnail (e.g. prefix 'video_') at the same time (and adjust FMP to use the big file as preview).

Second possibility: adjust the film strip code to downscale thumbnails as well or disable the film strip.
Logged

olaechea

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Custom Thumbnail for cpg1.5.x
« Reply #12 on: June 17, 2010, 10:31:20 pm »

demo or screenshot please
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Custom Thumbnail for cpg1.5.x
« Reply #13 on: June 18, 2010, 08:45:09 am »

Your gallery is your demo. Respect board rules if you want supporters to look into your suggestions.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Custom Thumbnail for cpg1.5.x
« Reply #14 on: June 18, 2010, 10:05:57 am »

demo or screenshot please
Not sure what you expect, but here is a picture of the button ::)
Logged

cl9m

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
Re: Custom Thumbnail for cpg1.5.x
« Reply #15 on: June 30, 2010, 09:03:51 am »

Hi!

I've a probleme with the watermark on custom thumbnail for video.
When I Upload a custom thumb for a video I've the thumb but no watermark.

yet everything is ok in my main configuration.

Is it possible that the problem comes from this plugin?

Anyway, thanks for creating this§
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Custom Thumbnail for cpg1.5.x
« Reply #16 on: June 30, 2010, 09:39:13 am »

As far as I can see, Coppermine doesn't watermark thumbnails, so why should the plugin does? Correct me if I'm wrong.
Logged

cl9m

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
Re: Custom Thumbnail for cpg1.5.x
« Reply #17 on: June 30, 2010, 10:15:31 am »

It's new in Coppermine 1.5
config > Displaying images > watermarking option (only in cpg1.5.x)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Custom Thumbnail for cpg1.5.x
« Reply #18 on: June 30, 2010, 10:45:59 am »

Not sure what you are talking about. config > Displaying images > watermarking option doesn't exist in cpg1.5.x.

At Configuration → Image watermarking → Which files to watermark you cannot select thumbnails, but pnly original, intermediate files or both. If you upload pictures to your gallery, there won't be a watermark on them. So where's the benefit of having watermarked custom thumbnails, but for pictures you'll have thumbnails without a watermark?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Custom Thumbnail for cpg1.5.x
« Reply #19 on: June 30, 2010, 01:06:31 pm »

I've a probleme with the watermark on custom thumbnail for video.
When I Upload a custom thumb for a video I've the thumb but no watermark.
That's not a feature of this plugin nor is it a feature of Coppermine? Why would you want a watermark on a thumbnail? A watermark on intermediates or full-sized images makes sense, but it doesn't make sense on thumbnails. If you want your custom thumbs watermarked, watermark them on your client before you upload them. The entire discussion is beyond the scope of this plugin announcement thread though imo and should be lead elsewhere (if at all).
Logged
Pages: [1] 2 3   Go Up
 

Page created in 0.028 seconds with 21 queries.