forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 modpack by Stramm => Topic started by: Stramm on October 13, 2007, 07:31:03 pm
-
included in modpack 1.4.14
This is an addition for the modpack 1.4.13.
Installation:
Download (attached to this thread) unzip and upload the archive contents to your server replacing the existing files.
This mod is in an early state. Therefore be aware of possible bugs and backup your files before using this. The language is still hardcoded, means no lang file support so far. Also it's working for now only with GD2. ImageMagick support will follow later.
If you want to create a thumb for a pic from a second image, then make sure it has the same extension as the original file. If the orig is jpg, then the thumb base image has to be jpg too. For media files you can use jpg, gif or png.
Please tell me about issues you may find.
Credits:
For this mod I've used the jsCropperUI (http://www.defusion.org.uk/code/javascript-image-cropper-ui-using-prototype-scriptaculous/) (BSD License). It's based on the Prototype (http://prototype.conio.net/) JavaScript framework and script.aculo.us (http://script.aculo.us/)
How to use:
1. Either next to an album click 'edit files' or below the intermediate image click 'edit file information'. Now you'll find above the thumb a link 'change thumb'. That's not really new for modpack users but read on.
2. Click the change thumb link and find the 'changeThumb.php' interface. Now you not only can create new thumbs for media files but also for images. You can upload new images or (if the original is an image) create the thumb from the image again. Also you can decide if you want to let the system automatically create thumbs or do that manually to find the best part of the image.
3. If you decide to upload a new image to create a thumb from that you have the possibility to check the checkbox 'Manually crop after upload'. If you do that, manually cropping is enabled, if not, the system auto crops the image (of course that's faster). If you manually crop, the image loads and a box appeares that indicates the area that will be cropped. This area has a min size of your thumb dimensions and will keep the aspect. So far I've tested with the modpacks 'exact size' thumbs and did some quick'n dirty tests with 'width' and 'height'. When you've found the part of the image you want to use as thumb click the 'save' button. Done... you just created a new custom thumb for your picture or media file.
4. a) Either upload a image to use as base for cropping
aa) manually crop (checkbox 'Manually crop after upload')
bb) auto crop (don't check 'Manually crop after upload')
b)
aa) click (if the orig is an image) 'Use the original image as base to crop the thumb' and you can manually crop the thumb from the original image
c) check the checkbox 'Remove current thumb' and click the button 'Remove current thumb' to delete the custom thumb. If it's a media file, then the media icon will display, if it's an image... then no thumb will display anymore.
Have a look at the screenshots in the next posts. The mod is attached to this post.
I've created a user on my demo site for you to play with this. Click 'my gallery' when logged in or browse to the user 'croptest's personal gallery. These four images you can edit.
user: croptest
pass: cropper
direct link to the user gallery of croptest: http://stramm.st.funpic.org/index.php?cat=10307
Version 1.1 uploaded today 10-14-2007
- cropping preview added
- lang file support (added the necessary code to the existing lang files [french, greek, italian, german] but not translated from english)
- ImageMagick support
- some other minor tweaks (eg. you can start cropping double clicking on the crop area instead of moving the mouse to the submit button and clicking that)
Version 1.2 uploaded 10-16-2007
- added a link within editpics and editonepic in addition to 'change thumb' that allows to directly jump to the thumb cropping using the orig image as base
- fixed a glitch in the cropper when using 'max aspect'
- when either using max aspect, width or height as aspect ration now the initial crop area is the thumb size and not anymore the fullsized width/ hight
- added 'change thumb' and 'crop thumb' to the lang file, the above existing modpack files have been upfated (using english)
- added lang fallback
Version 1.3 uploaded on 10-16-2007 as well
- when viewing a non image file in editpics now the 'crop link' won't appeare anymore. As a media file doesn't have an original, fullsized image, you can't crop an image from that. So 'change thumb' is the only valid possibility (upload and auto/ or manually crop a thumb)
- fixed another glitch when using 'max aspect'
Version 1.3.1 uploaded on 10-18-2007
- fixed ImageMagick support
- some minor improvements
language contributions are welcome!
-
Pic 1:
click edit files next to an album
Pic 2:
The edit files dialog... click 'change thumb' above the thumb
Pic 3:
That's how the 'changeThumb.php' interface looks...
-
Pic 4:
now click the button 'Use the original image as base to crop the thumb'
Pic 5:
the manual crop interface appeares, the image loads, if the original image is bigger than your intermediate settings, the script will resize it... therefore it may need some secs. If you use watermarks, then the script grabs the backup image so you won't have that watermark on the image you want to crop your thumb from
Pic 6:
that's how it looks when you've made your selection... now click 'save'
-
Pic 7:
Yippie, the new custom cropped thumb
Pic 8:
now we have a look at the upload area, that's espescially for media files, but you also can use it for images. You can upload another image and create the thumb from that.
Pic 9:
I've chosen a pic and checked 'Manually crop after upload'. That way I can crop manually. If I do not click the checkbox, the system will create the thumb for me .
-
The crop interface with preview area (v1.1)
-
updated today 10-16-2007 to v1.3
-
Hmmm.
I get this error:
Critical error
The file './albums/edit/thumb_Best_Of_Stocking_Secrets_Scene_0001.jpg-120-90-0-0-120-90' can't be inserted in the album
Mimer 8)
-
please post a link, testuser account and make sure I can upload a pic somewhere
useful also are the 'upload troubleshooting' settings
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble
-
Coppermine install: http://fjotte.dk/gal_da/
Forum install:
Coppermine version: cpg1.4.13
Forum version:
Test user account: tester / tester
Both DIR and files are 777 chmod
Size of thumbs are 120x120 px max and Coppermine setting is MAX 120px
Made an album called Stramm you can post in ;)
Mimer 8)
-
I cannot update thumbs either (that is for videofiles):
Update thumbs and/or resized photos (1)
What should be updated (2):
x Only thumbnails (mini and regular)
I get this error:
ERROR creating:$thumb
ERROR creating:$thumb
ERROR creating:$thumb
ERROR creating:$thumb
ERROR creating:$thumb
Mimer 8)
-
I get this error when I try to change thumb:
Error executing ImageMagick - Return value: 127
Mimer 8)
-
There's a bug with ImageMagick support... need to find and fix this. Seems I have to recode some parts. In the meanwhile you can use GD2.
The admin_tools problem shouldn't be related (and is a question on it's own, new thread)
-
OK. Changed to GD2.
It's like I still cannot change thumbs for mediafiles, that is videofiles.
Picture files works OK.
Mimer 8)
-
as said, the admin tools problem is not related and you should have started a new thread... but to give you the answer... expected behaviour and exactly what an unmodded copermine is doing as well. Garbbing a fullsized image and creating a thumb. If it's a media file, then there is no fullsized pic and therefore a thumb can't be created... that's why I coded this mod. You can upload images and use them to create thumbs for media files. And you can create better thumbs cause you now can chose what part of the image to use for the thumb (even for non media files).
-
Sure I understod that about the admin tools. I'll ask about that elsewhere.
It's related to my first question and your mod: Manually crop thumbs / replace thumbs for images and media
When I try to replace thumb for a videofile using your mod (and GD2 setting) the thumb isn't change I get the default WMV thumb.
Mimer 8)
-
worked for me... but it grabs the 'old' icon from cache and displays it while the custom thumb is already up. Hmm... I'll see if there's a possibilty
-
uploaded a new version, fixed ImageMagick support
-
Problem solved.
My thumbs extension were lowercase and videofiles extension.
Every thing works perfect now.
Thanks for all your support Stramm.
Mimer 8)
-
ahh.. I see, next version will have a check for that
-
Hi
I'm translating language file for modpack v1 for CPG 1.4.13 to Danish.
Anything to change for this mod addition?
Mimer 8)
-
Problem solved.
My thumbs extension were lowercase and videofiles extension.
Every thing works perfect now.
Thanks for all your support Stramm.
Mimer 8)
That is:
My thumbs extension were lowercase and videofiles extension UPPERCASE.
Therefor different filenames.
Just for clearing it out for other readers.
Mimer 8)
-
it's all added to the english lang file for this download
-
hey i m already using picmgmt.inc.php modified file for watermark mod ..so wht shud i do to use dis mod also i cnt overite picmgmt.inc.php coz of watermark mod
plz advice me wht shud i do for using both mods
-
This is a mod for the modpack. The modpack contains the watermark mod. If you use this without the modpack it'll probably not work.
-
Can i use this mod without modpack?
-
I've written this modpack addition for the modpack. Therefore I doubt it'll work on a standard CPG out of the box.
-
Hi,
i did a clean install of cpg 1416 and modpack 1416 and can't upload a custom thumb "without" a watermark for videos. I set all the watermark options to no, but it does what it wants. If set to "Watermark for special thumbs ....(video and audio)..) YES" the movie watermark appears, but if i set it to NO, the sample watermark appears though "Watermark for every picture" is defenitely set to NO.
Im confused ???
Greets
doggy
-
are you using ImageMagick?
-
yes and also tried it with gd2. i can pm you a link and admin account if you want.
-
you're right... I'll have to examine that
-
in picmgmnt.inc.php find (2x)
if ($watermark == "true" || $media_type != "false"){
and replace with
if ($watermark == "true" || ($media_type != "false" && $CONFIG['enable_thumb_watermark'] != 0)){
please report back if it's working for you. You may also try several different settings and see if all is running smooth ;)
-
yep, this works. thx for that great mod.
greets
doggy
-
really good mod, i congrutulate all of you,
can we use this mod for flash or media(.mov, .swf, .flv etc..)
thx
-
Its purpose is to allow the user to upload thumbs for all filetypes. If it's image files, then the user also may crop thumbs from the image itself.
-
Hey, I just upgraded my gallery to 1.4.16 and also got the stramm_mod1.4.16.bridge and stramm_mod1.4.13_cropping_v1.3.1. But I'm having trouble cropping the thumbs as I want. I don't use ImageMagick, but GD2. And when I go to the "change thumb" part, I click "use the original image as base to crop the thumb", but the original image is not as small as you can see from the image below, it should be bigger, but whatever thumb I want to crop, it still gives me the "thumb" version of the image, and not the original, to crop. I tried changing the gallery layouts and the languages, but whatever I use, it's still the same. What do I do wrong? Do I need to reinstall everything?
[img=http://img404.imageshack.us/img404/8335/crop1sp3.th.jpg] (http://img404.imageshack.us/my.php?image=crop1sp3.jpg)
-
just install the modpack and not this mod as it's already part of the modpack
included in modpack 1.4.14
This is an addition for the modpack 1.4.13.
so upload the modpack again (overwriting the cropping addition files) and retry
-
Thank you, I did that, but it still doesn't work. I still get the "thumbnail" version of the image when I get to the "Crop your image" part and I don't understand why. I should get the original image, right? Cause with the "thumbnail" version of it, I can't move the cursor keys nor nudge the area, nothing. It just stays the same.
-
Then post a link to your gallery and a testuser account. It needs permissions to upload
-
The feature you're talking about uses the intermediate image. As it looks like you've set intermediate image size the same as your thumb size.
-
So I should change the "intermediate" size to something bigger than the 100px size that the thumbs have, is that correct?
-
yes,
maybe it's a good idea to read the modpack docs, too
http://forum.coppermine-gallery.net/index.php/topic,28367.msg131255.html#msg131255
-
I'm so sorry for obviously being a complete dunce, but the installation instructions:
ownload (attached to this thread) unzip and upload the archive contents to your server replacing the existing files.
aren't quite explicit enough for me!
Where on my server should I upload the files to? I have tried my coppermine/plugins directory but it doesn't list in the plugins manager; also tried various other locations but to no avail.
If you could tell me where the files should go for this mod i'd be very grateful!
-
You upload them to your Coppermine directory, replacing any files that already exist.
-
right, well I've done that and run the database update but I can't see any new options anywhere.
Am I missing something fundamentally obvious that marks me out as an idiot?!! Thanks for your help!
-
This addition is part of the modpack for coppermine >= 1.4.14. As you should run the latest stable version, there's no need anymore to add this mod. It's already included.
You need the modpack. Without it won't work. Use the english (US) as language. Read the first post of this thread for more info on how to use the mod.
-
This is strange. I have indeed installed the latest modpack and run the update. Every single mod appears in the plugins manager EXCEPT for the Cropper that I need. There is also no link above thumbs called "change thumb" - it just doesn't appear.
-
please post a link and a testuser account. Make sure you've enabled 'custom thumbs' in config (files and thumbnails settings)
-
Thanks Stramm,
Where should I enable custom thumbs? I have no section called "files and thumbnails settings" nor does anything similar appear in the standard coppermine config panel!
-
In the admin menu click the 'admin' button. If the modpack is installed and you use one of the suppprted languages (recommended is to use english [US] to do the settings) you'll see additional entries, eg. watermarking.
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_picture_thumbnail
-
hi! i installed the modpack succesfully and i'm trying to change the thumb of a zip files, after clicking save after cropping my image it goes back to the first page with the old thumb so nothing happens.
here after uploading a picture it goes back to that :
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg25.imagevenue.com%2Floc954%2Fth_16563_Sans_titre-2_122_954lo.jpg&hash=663ef1d3a6cd36f2c7a3fcd9e0773b0abfcfd146) (http://img25.imagevenue.com/img.php?image=16563_Sans_titre-2_122_954lo.jpg)
here i created an test account if someone want to try ! thanks.
username : ++++
opassword: ++++
-
the URL would help ;)
-
oops, sorry ! http://lovelylopez.net/multimedia/index.php
-
works as expected if you http upload http://lovelylopez.net/multimedia/displayimage.php?pos=-10 (pdf file, coral as custom thumb). Your batch added example won't work if you don't allow php/ gd2 to save images in that folder (chmod it to 755 or 777, depending on your server setup).
PS: Never post publically admin pwds as this can be used to take over your entire server. I've edited it out in your above post.
-
ok thanks, but i didn't get which folder i need to Chmod ?
-
The folders in which you (ftp) upload your files. In your above example it would be albums/Film
-
ok, thanks, i did it but it still doesn't work. :-\
-
it works for the pdf file but not the zip file.
-
You have chmodded that folder? Tried with both possibilities?
-
don't i really don't get i chmoded the folders and the thumb won't change. I did it with a pdf and jpg file and it works but not with the zip file .
-
so it's not possible to change the thumb of a zip file ?
-
Don't capitalise the filename extension.
-
Change permissions depending on your server setup so that php/gd2 is allowed to save files in that folder. 755 should be enough. Make double sure you did (chmod the folder and not just look permissions up with your ftp app). More I can't say. If it doesn't work, then you did something wrong.
-
Don't capitalise the filename extension.
that was it !! :) !! thank you both for your help ! ;)
-
i have one last question what are the black letter on thumb ? e WM http://lovelylopez.net/multimedia/displayimage.php?album=random&cat=0&pos=-14
-
can't edit my post sorry, forget my previous post i found what it is.
-
1. When i try to configure something it doesn't show me the button who i can click for confirm the modify!
2. When i want to edit files it doesn't show me "edit thumb" it shows me "crop thumb"
-
@Stramm: shouldn't this thread get locked?
-
You're definitely right