|
|
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
   
Offline
Posts: 17849
Thank You
-Given: 47
-Receive: 498
mmm PHP...
|
Wrong download link removed.
|
|
|
|
|
|
Logged
|
|
|
|
webtrade
Pre-Newbie
Offline
Posts: 9
Thank You
-Given: 0
-Receive: 0
|
Thanks Nicky. Much appreciated! 
|
|
|
|
|
|
Logged
|
|
|
|
jaromir
Newbie
Offline
Posts: 19
Thank You
-Given: 0
-Receive: 0
|
can be deleted!!
|
|
|
|
|
« Last Edit: December 05, 2008, 12:47:50 AM by jaromir »
|
Logged
|
|
|
|
mawenzi
Moderator
4images Guru
   
Offline
Posts: 4499
Thank You
-Given: 36
-Receive: 108
|
@jaromir
... this MOD resized images during the upload process via upload-form ... ... I think you tested auto resize via ACP, this MOD is not for the ACP ...
|
|
|
|
|
|
Logged
|
|
|
|
webtrade
Pre-Newbie
Offline
Posts: 9
Thank You
-Given: 0
-Receive: 0
|
Just when you thought there wouldn't be another one of those cries for help - "I've applied the mod but it's not working for regular users! Only admin!"
Hope someone can please assist. I've applied the mod a number of times in different installation directories (and studied the tutorial and read previous posts) but I stil have probs when users other than admin try and upload. Looking at previous posts it seems like step 2.2 is big culprit. This is an extract from my upload.php file:
function check_image_size() { $this->image_size = @getimagesize($this->upload_file); $ok = 1; if ($this->image_size[0] > $this->max_width[$this->image_type]) { $ok = 0; $this->set_error($this->lang['invalid_image_width']); }
if ($this->image_size[1] > $this->max_height[$this->image_type]) { $ok = 0; $this->set_error($this->lang['invalid_image_height']); } if ($this->auto_image[$this->image_type]) { $ok = 1; } return $ok;
Does it look OK? Any tips would be greatly appreciated!
Cheers
|
|
|
|
|
|
Logged
|
|
|
|
webtrade
Pre-Newbie
Offline
Posts: 9
Thank You
-Given: 0
-Receive: 0
|
Hi,
I should have mentioned that the error only occurs when regular users try to upload images larger than what I have specified (500px x 500px, 1mb). And that I have the settings activated in CPanel - Auto resize - yes; GD Bib.. selected) The message is:
Error uploading image file: image.jpg: Image size invalid image.jpg: Image width invalid image.jpg: Image heigth invalid
Thanks!
|
|
|
|
|
|
Logged
|
|
|
|
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
   
Offline
Posts: 17849
Thank You
-Given: 47
-Receive: 498
mmm PHP...
|
This is probably one my first mods I made... At the moment I don't have chance to check this myself, but try this: remove changes in step 2.2 find: 1
| $this->image_size = @getimagesize($this->upload_file); |
Insert below: 1 2 3
| if ($this->auto_image[$this->image_type]) { return 1; //auto image is on, don't need check for anything else. } |
|
|
|
|
|
|
Logged
|
|
|
|
webtrade
Pre-Newbie
Offline
Posts: 9
Thank You
-Given: 0
-Receive: 0
|
Thanks for responding V@no. Much appreciated. I applied your suggestion but still have a prob, although the error message is now reduced to a one liner:
Error uploading image file: image.jpg: Image size invalid
This scenario sounds familiar. I remember it from a previous post. I'll go back and have a read.
Cheers
|
|
|
|
|
|
Logged
|
|
|
|
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
   
Offline
Posts: 17849
Thank You
-Given: 47
-Receive: 498
mmm PHP...
|
That error is expected if you set "Max. image size in KB" in the settings to a too low number. Set it higher and that should fix it.
|
|
|
|
|
|
Logged
|
|
|
|
webtrade
Pre-Newbie
Offline
Posts: 9
Thank You
-Given: 0
-Receive: 0
|
Thanks V@no! You're a legend! It works! I increased it to 2048kb and it's all good now. Happy new year! 
|
|
|
|
|
|
Logged
|
|
|
|
Blesi
Full Member
 
Offline
Posts: 104
Thank You
-Given: 0
-Receive: 0
|
Ein paar Beiträge zuvor hat schon einmal jemand gefragt, ob es möglich ist, wenn ich ein Bild lösche, dass dieses zugehörige auch im BIG Ordner gelöscht wird. Leider bleibt bisher immer das Bild im BIG Ordner noch stehen. Mit der Zeit wenn mehrere Bilder kommen, wird das sicher sehr unübersichtlich. Kann jemand helfen?
Can anybody help? When i delete a picture, the original picture will not be deletet in the BIG folder.
Gruß Christian
|
|
|
|
|
|
Logged
|
|
|
|
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
   
Offline
Posts: 17849
Thank You
-Given: 47
-Receive: 498
mmm PHP...
|
It shouldn't happened...did you check if images in big folder are CHMOD 777?
[EDIT] just checked on my local server and it deleted files in big folder as well.
|
|
|
|
|
« Last Edit: January 07, 2009, 04:34:22 PM by V@no »
|
Logged
|
|
|
|
|
Lucifix
|
Wow too big topic to search all pages, but I doubt that anyone else has done that.
What I would like....
If has user upload bigger image then maximum size (lets say max width/height: 1920x1020px), image is resized to those limits (1920x1020px) and it's uploaded to folder /big. Second resized image (based on 2nd limitation values: 900x900px) is being uploaded to original folder.
Has anyone already done that?
|
|
|
|
|
|
Logged
|
|
|
|
meier
Jr. Member

Offline
Posts: 58
Thank You
-Given: 0
-Receive: 0
|
Hallo, bei mir funktioniert der Mod nicht. Das Bild bleibt wie es ist. Bei Schritt2.2 hab ich auch diesen anderen code versucht. Dazu scheint scheint das jetzt nicht mehr gleich angezeigt zu werden. Direkt upload ist eingestellt, aber ich muss erst auf Bild suchen gehen damit es angezeigt wird.
|
|
|
|
|
|
Logged
|
|
|
|
|