Author Topic: Fehler bei Bildbearbeitung bei großen Dateigrößen  (Read 6989 times)

0 Members and 1 Guest are viewing this topic.

Offline herodot

  • Pre-Newbie
  • Posts: 4
    • View Profile
Fehler bei Bildbearbeitung bei großen Dateigrößen
« on: October 26, 2007, 01:25:32 PM »
Liebe Community!

Mein 4images funktioniert super! Ich habe nur ein Problem. Die Bildbearbeitung (Autothumbnailer, Imageresizer) funktionieren nur bei Bildern bis 1999 KB. Bei allem drüber kommt zwar die Bestätigungsseite, aber es steht nur "Erstelle Thumbnail für: IMG 1184 (IMG_1184.JPG) ...." und sonst passiert nichts - das Bild wird auch nicht verkleinert.

Woran kann das liegen? Wie kann ich das lösen?
Wer kann mir helfen?

LG
herodot

4images version: 1.7.4 mit PHP 5.2.0 und GDBibliothek

Offline kai

  • Administrator
  • Addicted member
  • *****
  • Posts: 1.423
    • View Profile
    • 4images - Image Gallery Management System
Re: Fehler bei Bildbearbeitung bei großen Dateigrößen
« Reply #1 on: October 26, 2007, 01:29:08 PM »
Ich nehme an die Seite läuft auf einem shared Hostingpaket.
Der Prozess des Bildverkleinerns bricht ab, weil der Server nicht ausreichend Ressourcen zur Verfügung stellt.
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline herodot

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: Fehler bei Bildbearbeitung bei großen Dateigrößen
« Reply #2 on: October 27, 2007, 07:04:13 PM »
Nein. Es ist ein eigener Server, der uns gehört und von einer Technikfirma betreut wird. Es läuft nicht viel anderes am Server. Weis aber auch nicht ob irgendwo Begrenzungen eingetragen sind - könnte das sein? Ansonsten schließe ich das aus, dass der Server nicht genug Ressourcen hat.

LG
herodot

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: Fehler bei Bildbearbeitung bei großen Dateigrößen
« Reply #3 on: October 27, 2007, 10:11:25 PM »
hi,

also, ich würde dies nicht ausschliessen.
ich habs gerade mit einen ~3,5 mb foto ausprobiert. funktioniert tadellos..
schick mir den link zu deinem foto, ich teste es auf meinem server (shared).
cheers
Nicky
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 ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline herodot

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: Fehler bei Bildbearbeitung bei großen Dateigrößen
« Reply #4 on: October 28, 2007, 01:34:21 PM »
Hey!

Unser Server ist kein shared Server!
Der Link zu einem der nicht funktionierenden Fotos ist:
http://www.mediafoto.at/cms/details.php?image_id=507

Kann das leicht am Foto liegen?

LG
herodot

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: Fehler bei Bildbearbeitung bei großen Dateigrößen
« Reply #5 on: October 28, 2007, 02:43:56 PM »
das Bild ist doch da, nur eben 12 MB groß
und solche Abmaße, das das Template komplett verschoben wird

Offline kai

  • Administrator
  • Addicted member
  • *****
  • Posts: 1.423
    • View Profile
    • 4images - Image Gallery Management System
Re: Fehler bei Bildbearbeitung bei großen Dateigrößen
« Reply #6 on: October 28, 2007, 04:37:30 PM »
Nein. Es ist ein eigener Server, der uns gehört und von einer Technikfirma betreut wird. Es läuft nicht viel anderes am Server. Weis aber auch nicht ob irgendwo Begrenzungen eingetragen sind - könnte das sein?

Ja. Der Admin soll probieren das memory limit hochzusetzen.
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: Fehler bei Bildbearbeitung bei großen Dateigrößen
« Reply #7 on: October 28, 2007, 05:18:53 PM »
http://www.nicky.net/4test/index.php

getestet auf meinen shared server
cheers
Nicky
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 ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline herodot

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: Fehler bei Bildbearbeitung bei großen Dateigrößen
« Reply #8 on: October 30, 2007, 02:00:41 PM »
das Bild ist doch da, nur eben 12 MB groß
und solche Abmaße, das das Template komplett verschoben wird

Das Bild ist doch 2 MB groß net 12MB??
Das mit den Maßen weis ich e. Aber der Image Resizer funktioniert ja nicht!!


http://www.nicky.net/4test/index.php

getestet auf meinen shared server

OK. Danke. Und was bringt das jetzt für mich? Bei mir gehts net?! Also am Bild liegts net.

Werd jetzt dem Techniker einmal sagen er soll das Memorylimit rauf setzen.

LG
herodot

Offline kai

  • Administrator
  • Addicted member
  • *****
  • Posts: 1.423
    • View Profile
    • 4images - Image Gallery Management System
Re: Fehler bei Bildbearbeitung bei großen Dateigrößen
« Reply #9 on: October 30, 2007, 02:17:15 PM »
Wenn das JPG Bild in den Arbeitsspeicher auf den Server geladen wird und mit GD "resized" wird, ist es größer als die z.B. 2 MB original Dateigröße.


http://www.netlobo.com/php_image_resize_gd2.html

Quote
When I originally wrote this article there were not many digital cameras or other devices capable or creating images larger than about 6 megapixels. Now that 7,8, and 10 megapixel cameras are more commonplace, some people who use this resizing function have run into a problem with PHP running out of memory. The problem is that the user's web host has set the PHP memory limit to a low value so that the server's resources can be shared somewhat equally between all the users on the server. Larger files require more memory to resize so when the resizing script hits the memory limit it chokes and gives an internal server error.

Possible solutions to the problem:

    * Contact your host and ask them to increase the PHP memory limit so your script can resize the larger files.
    * Use a different program to resize the images such as ImageMagick if your host provides it. If your host does not provide it you may be able to install it yourself if you have shell access available on your hosting account.
    * Don't allow users to upload such large files. It consumes a lot of bandwidth on your server and can be very slow for the user depending on the speed of their internet connection. Have them resize the image before uploading it so that it is under 1MB or so.

I hope this PHP function will allow you to resize images easily. It has worked very well for me.
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: Fehler bei Bildbearbeitung bei großen Dateigrößen
« Reply #10 on: October 30, 2007, 02:30:47 PM »
sorry, so hab ich das gemeint!

ich habe mit 2048MB Arbeitsspeicher getestet, dann wird das Bild ca. 12 MB beim "resizen"

(und geht bei mir noch sehr gut, allerdings...
...muss das ja nicht auf jedem Sever gehen, bei Kai und Nicky gehts aber auch)