Ergebnis 1 bis 9 von 9

Thema: Problem mit Bilderstellung

  1. #1
    TP-Veteran Avatar von Flow09
    Registriert seit
    Jun 2001
    Ort
    Wien
    Beiträge
    1.436

    Unhappy Problem mit Bilderstellung

    Hallo!

    Ich versuche gerade ein Bild welches ich in einem Formular aussuche, per PHP in ein Thumbnail und ein verkleinertes Bild umzuwandeln und schließlich am Server zu speichern!
    Das klappt aber nicht! Fehlermeldung: Warning: imagejpeg() [function.imagejpeg]: Invalid filename

    Hier mal der Code:
    PHP-Code:
        $neuerpfad_thumbs "\thumbs\\100002_thumb.jpg";
        
    $neuerpfad_images "\\images\\100002.jpg";
        
    $size=getimagesize($bild);
        
    $breite=$size[0];
        
    $hoehe=$size[1];
        
    $neueBreite_thumb=60;
        
    $neueHoehe_thumb=110;
        
    $neueBreite_image=160;
        
    $neueHoehe_image=210;

        
    $altesBild=ImageCreateFromJPEG($bild);
        
    $neuesBild_thumb=ImageCreate($neueBreite_thumb$neueHoehe_thumb);
        
    $neuesBild_image=ImageCreate($neueBreite_image$neueHoehe_image);
        
    ImageCopyResized($neuesBild_thumb,$altesBild,0,0,0,0,$neueBreite_thumb,$neueHoehe_thumb,$breite,$hoehe);
        
    ImageCopyResized($neuesBild_image,$altesBild,0,0,0,0,$neueBreite_image,$neueHoehe_image,$breite,$hoehe);
        
    Imagejpeg($neuesBild_thumb,$neuerpfad_thumb);
        
    Imagejpeg($neuesBild_image,$neuerpfad_image); 
    Keine Shnung was da falsch ist!

    Bitte um hilfe!

    Danke im voraus!

    lg
    Flow
    Geändert von Flow09 (08.04.2003 um 14:11 Uhr)
    Lesser known Programming Languages #13: SLOBOL
    ... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.

  2. #2
    TP-Veteran Avatar von Flow09
    Registriert seit
    Jun 2001
    Ort
    Wien
    Beiträge
    1.436
    OK! Altes Problem gelöst neues geschaffen!
    Es war nur ein besch... Variablen-Fehler
    Jetzt bekomm ich die Meldung:
    Warning: imagejpeg() [function.imagejpeg]: Unable to open '\thumbs\100002_thumb.jpg' for writing in...

    Keine Ahnung was jetzt los ist!

    lg
    Flow
    Lesser known Programming Languages #13: SLOBOL
    ... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.

  3. #3
    TP-Greis
    Registriert seit
    Jun 2001
    Beiträge
    5.468
    Falsche Slashes (\ vs. /)?

  4. #4
    TP-Veteran Avatar von Flow09
    Registriert seit
    Jun 2001
    Ort
    Wien
    Beiträge
    1.436
    Mehr oder weniger!
    Blöde Escape-Sequenzen \thumbs wurde als \t interprtiert!
    Lesser known Programming Languages #13: SLOBOL
    ... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.

  5. #5
    TP-Greis
    Registriert seit
    Jun 2001
    Beiträge
    5.468
    Auch schön.

    Erledigt?

  6. #6
    TP-Veteran Avatar von Flow09
    Registriert seit
    Jun 2001
    Ort
    Wien
    Beiträge
    1.436
    Ja, erledigt!
    Sorry, hab ich in der hektik vergessen!
    Lesser known Programming Languages #13: SLOBOL
    ... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.

  7. #7
    TP-Specialist Avatar von Master_T2
    Registriert seit
    Oct 2002
    Beiträge
    2.272
    Hi, ich habe deinen Code benutzt um ´Thumbnails zu erzeugen. Wenn ich dieses aber öffne, dann hat es zwar die richtige Größe aber ist nur schwarz?
    Grüße aus Übach-Palenberg
    Tim

    http://www.template-shopping.de

  8. #8
    TP-Veteran Avatar von Flow09
    Registriert seit
    Jun 2001
    Ort
    Wien
    Beiträge
    1.436
    Echt, komisch, bei mir funktioniert es!
    Zeig mal her den Code!

    lg
    Flow
    Lesser known Programming Languages #13: SLOBOL
    ... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.

  9. #9
    TP-Specialist Avatar von Master_T2
    Registriert seit
    Oct 2002
    Beiträge
    2.272
    Ups, war auch ein Variablenfehler Hat sich erledigt!...
    Grüße aus Übach-Palenberg
    Tim

    http://www.template-shopping.de

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

     

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51