|
Autor |
Nachricht |
gayatri
|
Titel: Uploadpic in a forum / resize watermark ? / include avi ?
Verfasst am: Fr, 23 Dez 2005, 08:41 |
|
|
Hello !
I am using uploadpic mod to upload images on my own server and i need help on following two topics.
I]
While uploading i am able to put watermark on the images but i am facing problem to resize the watermark on the main image.How to do tht?
II]
Wht shud I do to upload video files such as '.avi' or other than '.jpeg','.gif','.png','.bmp.' ?
|
|
Nach oben |
|
boris
Beiträge: 11195
|
Titel: Re: Uploadpic in a forum / resize watermark ? / include avi
Verfasst am: Fr, 23 Dez 2005, 10:05 |
|
|
gayatri @ Fr, 23 Dez 2005, 07:41 gab folgendes von sich: |
While uploading i am able to put watermark on the images but i am facing problem to resize the watermark on the main image.How to do tht? |
The watermark is not to be resized - as the watermark-picture is often an image with the forum- (or website-)URL, a resize could make it unreadable.
I'm using this for example:
Any resize to make it smaller would discard the letters and make it a small black line
So the watermark is the same size on all pictures - to prevent it from still being too big for a picture you can change the minimum size of the uploaded image, that the watermark is applied to, in the ACP.
Why do you need to resize the watermark-image ? If there's a great idea to it that I'm missing, please let me know, so I can include it.
gayatri gab folgendes von sich: |
Wht shud I do to upload video files such as '.avi' or other than '.jpeg','.gif','.png','.bmp.' ? |
1. .bmp is not supported as the GD-library doesn't offer a function to load bmp-files directly.
(There is a function to load bmp-files with PHP - here - but as the function is almost bigger than the whole UploadPic-script and bmp is hardly ever used, I won't include it)
2. It's not possible to include .avi-format (or any other movie-format), as the tag used to display the "images" is the HTML-<img>-tag which doesn't support movie-files. So if you uploded a movie with UploadPic, your message would look something like this: [img]test.avi[/img] without showing the movie or making it downloadable.
To include a movie (or any other file) into messages, the movie-file has to be treated like a "normal" file - to do that, you can use an Upload-MOD or the Attachment-MOD, but not UploadPic (otherwise it would be called "UploadAnyFile" ). What both of the mentioned MODs do not do, is display a thumbnail of the uploaded movie (if that's what you want) - but I'm not using those MODs, you may want to check them out.
What you can do, to have movies in your messages: use an Upload-MOD to get the movies to your forum and use UploadPic to upload a thumbnail (which the user has to create) - you can then link to to files together:
Code: |
[url=uploadedfile-URL][img]thumbnailimage-URL[/img][/url] |
So when you click the image, you'll download the file ...
____________ beehave - home of humbug ... [we can't afford to be neutral]
|
|
Nach oben |
|
gayatri
|
Titel: (Kein Titel)
Verfasst am: Fr, 23 Dez 2005, 13:47 |
|
|
Hey Boris
Thanks for your detailed reply.
What I would want to know is if the watermark image has been set to a predefined size (width+height) since I've made a watermark image of 148x20 pixels and kept it to appear on the bottom right of the image - this watermark image gets cropped and it seems to appear a bit stretched. for ex. your watermark image is 76x9 pixels - is that the maximum size I can use? Kindly let me know if there is a predefined size and if I can change that.
About the avi or mpeg or for that matter any video file, I would want just the link to be inserted in the post and not embed the video file within - is it possible tweaking your mod a bit and attain this. I understand that you can do this with the upload mod or the attachment mod - but what I like about your mod is that it is pretty light weight and close to what I was looking for. Can you let me know if I can just have a link for the video files using your mod?
An early reply will be appreciated.
Thanks for your help
Just thought this - is it possible that in the upload pic config we add the datatype for the video files as well and it would accept that as a link. Is that possible, Boris?
Gayatri
|
|
Nach oben |
|
boris
Beiträge: 11195
|
Titel: (Kein Titel)
Verfasst am: Fr, 23 Dez 2005, 21:54 |
|
|
gayatri @ Fr, 23 Dez 2005, 12:47 gab folgendes von sich: |
your watermark image is 76x9 pixels - is that the maximum size I can use? |
Actually the watermark can be any size - I tried it with a huge picture as well and it worked just fine.
The watermark-image will be cut off if its bigger than the uploaded image but there should be no stretching at all - the only reason for that I can think of is that the uploaded image and the watermark have different resolutions.
gayatri gab folgendes von sich: |
I would want just the link to be inserted in the post and not embed the video file within - is it possible tweaking your mod a bit and attain this. |
It is possible, but goes far beyond "tweaking a bit" ... it could be done like this:
any (!) file can be uploaded, but only the files without image-extensions (which are the "allowed" extensions now) must be treated differently ...
but:
- I'll need to put in a separate filesize-limit for "not picture"-files
- another switch is needed: "allow upload different from pictures" for forums that don't need this option
- the gallery needs to be changed to treat those files differently
- the UploadPic-dialog after the upload needs to change to only offer "insert as a link" when we have a "not-picture"-file
- the admin-preview-link for pictures needs to be deactivated for those files
- while we're at it: "allowed" extensions for "non-picture"-files are a pretty good idea, too
- and the upload-dialog doesn't really look like I could upload different files with it - that'll need a complete makeover (if not a switch to change the form between pic/non-pic)
As you see: it's possible, but not with a twitch of a finger ... so, if you're in desperate need of that function, I'd still recommend the other MODs (the Upload-MOD mentioned above is a pretty small MOD as well) ...
I guess if I add this feature it will definitely take some time (and will make me think of a name-change of UploadPic ) ...
____________ beehave - home of humbug ... [we can't afford to be neutral]
|
|
Nach oben |
|
gayatri
|
Titel: (Kein Titel)
Verfasst am: Di, 27 Dez 2005, 10:13 |
|
|
Hello !
Thx for ur quick reply.As per your recommendation, I tried Upload-MOD which is really a pretty small MOD.For tht I had to edit the file upload_mod_install.php to install the mod.
I] When I upload a file with the tool I get the follg error:
Warning: Wrong parameter count for mkdir() in c:\apache\htdocs\testforum\upload.php on line 97
Warning: fopen("./files/2/index.php", "w") - No such file or directory in c:\apache\htdocs\testforum\upload.php on line 99
II]Also how to permit the admin as well as some particular user to upload a file as we can do tht in UploadPic?
Plz help!
_________________
Gayatri
|
|
Nach oben |
|
boris
Beiträge: 11195
|
Titel: (Kein Titel)
Verfasst am: Di, 27 Dez 2005, 11:34 |
|
|
I don't use the Upload-MOD - the only thing I know is, that it should do what you need ...
You may need to ask the author directly or start a thread at phpbb.com ... sorry, but my free time is short enough to only support my own MOD
____________ beehave - home of humbug ... [we can't afford to be neutral]
|
|
Nach oben |
|
|
|
ähnliche Beiträge |
|
Thema
| Autor
| Forum
| Antworten
| Verfasst am
|
|
uploadpic auf orion phpBB instalieren |
hewika |
mod support |
9 |
Mo, 03 Jan 2011, 21:18 |
|
uploadpic Problem -> hilfe benötigt |
Dakota |
mod support |
1 |
So, 15 Aug 2010, 15:39 |
|
Forum-Blockade durch Webwasher |
boris |
werkstatt |
11 |
Mo, 21 Sep 2009, 20:13 |
|
Forum-Finetuning |
boris |
werkstatt |
0 |
Di, 17 März 2009, 22:35 |
|
Forum-Portal |
boris |
werkstatt |
1 |
Do, 12 Feb 2009, 11:36 |
Schreiben: nein. Antworten: nein. Bearbeiten: nein. Löschen: nein. Umfragen: nein.
|