• [Mod] Auto image resize on upload v2.0.1 (2010-12-18) 4 0 5 1
Currently:  

Author Topic: [Mod] Auto image resize on upload v2.0.1 (2010-12-18)  (Read 590191 times)

0 Members and 1 Guest are viewing this topic.

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [MOD] Auto image resize on upload.
« Reply #120 on: October 07, 2005, 09:39:24 PM »
This MOD will resize uploaded by users images to Max. Image Width set in settings.

Noch Fragen?
Bitte lies vorher auch ein paar Postings bevor Du fragst! Das hier ist der erste Satz in diesem Thema und selbst das hast Du nicht einmal gelesen??

Offline Fireball22

  • Full Member
  • ***
  • Posts: 187
    • View Profile
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #121 on: October 08, 2005, 10:00:38 AM »
Wofür gibt es dann diesen Mod?
Die Einstellungen gibt es ja dann schon, das einzige was es dann noch an Einstellungen hinzugibt wäre das Begrenzen der Qualtität.
Und ich wurde hier hingewiesen, um folgendes machen zu können:
http://www.4homepages.de/forum/index.php?topic=9847.msg47731#msg47731

Fireball22

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #122 on: October 08, 2005, 11:14:20 AM »
Mensch, das Limit gilt dann nicht mehr fürs uploaden. Das ist dann nur das Limit für die Detailansicht und uploaden kannst Du dann auch größere Bilder und diese werden dann verkleinert und das orginal in den BIG Ordner verschoben.

Offline Fireball22

  • Full Member
  • ***
  • Posts: 187
    • View Profile
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #123 on: October 08, 2005, 11:58:42 AM »
Och man, bin ich blöd  :?
Stimmt eigentlich!
Aber warum steht dann beim Upload von Images immer dran, dass die eingestelle maximal Upload-Größe z. B. immer noch 1280 Pixel statt unbegrent beträgt?

Fireball22

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #124 on: October 08, 2005, 12:05:08 PM »
Na weil das Script das von alleine nicht entfernen wird und Du es selber machen müsstest.

Offline Fireball22

  • Full Member
  • ***
  • Posts: 187
    • View Profile
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #125 on: October 08, 2005, 12:09:35 PM »
Achso!
Könnte ich die Datei in der das mit dem Upload drin steht hernehmen und da das "include" für die Maximal größen gegen unbegrenzt ändern? Also einfach reinschreiben?
Und wo könnte man das mit dem PopUp ändern, weil da bei mir wieder die ganze Seite angezeigt wird, im Pop Up. Wie kann man das ändern, dass das Bild einzeln ein groß angezeigt wird, aber ohne Adressleiste?
Sonst funktioniert jetzt alles! Vielen Dank schon mal!
Achso und wie heißt die Datei wo das mit dem Upload drin steht?

Fireball22

Offline marvick

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #126 on: October 12, 2005, 11:16:25 PM »
Ich bekomme diese Meldung / after installing i get this:

Quote
Fatal error: Allowed memory size of 26214400 bytes exhausted (tried to allocate 3456 bytes) in /www/htdocs/w0057fa1/testfotoforum/4images/includes/image_utils.php on line 81

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #127 on: October 13, 2005, 07:40:51 AM »
So und heute zeigen wir euch wie man ohne viel Grips die Suche missbraucht!!!

Als erstes sollten wir uns endscheiden wonach wir suchen wollen.

Also nehmen wir unsere Fehlermeldung und schauen was davon wohl brauchbar wäre:

Quote
Fatal error: Allowed memory size of 26214400 bytes exhausted (tried to allocate 3456 bytes) in /www/htdocs/w0057fa1/testfotoforum/4images/includes/image_utils.php on line 81

die Bytes und der Pfad sind von user zu user unterschiedlich, das leutet wohl jedem ein.

Also bleibt nur die wörter "Fatal error: Allowed memory size of exhausted tried to allocate" .

Wir endscheiden uns nur nach den Wörtern Fatal error: Allowed memory size zu suchen.

Ok was wir suchen wollen ist jetzt klar, nur um gotteswillen gebe ich nur die Suchbegriffe ein.... *grübel* *such*

Achja dort oben gibt es hinter dem Wort Suche: ein Textfeld, ich glaube damit sollte ich es mal versuchen...

Copy und Paste Fatal error: Allowed memory size ins Textfeld und dann mal fix auf suchen gedrückt.

Ich hoffe das ist die Lösung die die wolltest.

Achja das hat NULL was mit diesem Mod zu tun aber das nur so nebenbei...

Offline Fireball22

  • Full Member
  • ***
  • Posts: 187
    • View Profile
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #128 on: November 01, 2005, 01:43:19 PM »
Kann vielleicht der Admin die Änderungen für 4Images so hier hinschreiben, sodass auch die Bilder beim löschen im "Big"-Ordner gelöscht werden?
Weil bei mir die Bilder nach ca. 3 Montaten wieder alle gelöscht werden müssen und das eine rießige Sucherei bei erwarteten über 500 Bildern wird.

Wäre wirklich super, wenn man das noch ändern könnte!

Was nicht so wichtig ist, aber trotzdem total super wäre, wenn er auch die Änderungen hier posten könnte, dass man beim klick auf Download die original "big"-Datei downloaden könnte.

Fireball22

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #129 on: November 01, 2005, 05:14:38 PM »
@ V@no and all,

I use this MOD since some times successfully on my website ...  :D
But now I need a change for it.

I also use successfully a Panorama-Media-Element for animated Panorama-Images on my site ...
... similar like these : http://www.4homepages.de/forum/index.php?topic=10250.msg50333#msg50333) .

The images for these Panorama-Media-Element are jpg-files (approx. 3500px x 300px) renamed as ram-files (for 360°-Panoramas).
But now by user-uploading via website these files are also resized, which of course should not be.

Now my questions :
How can I prevent resizing of these ram-files (and rm-files for 180°-Panoramas) ?

Can I use in /includes/upload.php the following code ... ? Where and how ... ?
Code: [Select]
if ($this->extension == 'ram , rm') {
    return 1;
  }

these code does not work for me ...
Code: [Select]
function check_image_size() {
    if ($this->extension == 'rm') {
    return 1;
    }
    $this->image_size = @getimagesize($this->upload_file);
    ....

thanks in advance
mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #130 on: November 02, 2005, 12:34:05 AM »
actualy its in member.php
find:
Code: [Select]
if ($image_info[2] == 1 || $image_info[2] == 2 || $image_info[2] == 3) { (from this mod ;))
replace it with:
Code: [Select]
if (($image_info[2] == 1 || $image_info[2] == 2 || $image_info[2] == 3) && !in_array(strtolower(substr(strrchr($new_name,"."), 1)), array("ram", "rm"))) {You can add into the array as many file extensions as you wish.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #131 on: November 02, 2005, 09:48:39 AM »
thanks V@no for your fast assistance ...  :D

with a small correction it works perfectly !
Quote
... array("ram", "rm"))) {

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline troopers

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • weltimperator.de
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #132 on: November 11, 2005, 11:10:00 PM »
hi,

does it give any solution for this mod,  to run with phpbb?  cause if i run this mod, nothing happend, and the thumbnails
are the download versions and the dl-version the thumbnails, -g-

my 'en' isnt very well :D

if i show my /orig folder, i didnt see any copy of the image... (yes, i editet the path :) )


v. 1.7.1
mod: multiupload, phpbb mod, check all cats, etc....
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
weltimperator.de

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #133 on: November 12, 2005, 12:16:10 AM »
* V@no didn't understand neither what is the problem nor what is the question...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #134 on: November 12, 2005, 11:11:55 AM »
try in german... (o: