Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Skalowanie obrazka
mariusz g
post
Post #1





Grupa: Zarejestrowani
Postów: 76
Pomógł: 0
Dołączył: 25.03.2006

Ostrzeżenie: (0%)
-----


Witam exclamation.gif!

taki błąd mi wywala, moze to proste ale ja nie mam pojęcia.

Parse error: parse error, expecting `'('' in c:\php\easyphp1-8\www\index.php on line 26



  1. <?php
  2.  
  3. // Load autoloader functionality
  4. require_once 'Base/base.php';
  5. function __autoload( $className )
  6. {
  7. ezcBase::autoload( $className );
  8. }
  9.  
  10. // Define which handler to use for the image manipulation.
  11. $settings = new ezcImageConverterSettings(
  12. new ezcImageHandlerSettings( 'ImageMagick', 'ezcImageImagemagickHandler' ),
  13. )
  14. );
  15.  
  16. // Create the converter object.
  17. $converter = new ezcImageConverter( $settings );
  18.  
  19. $scaleFilters = array(
  20. new ezcImageFilter(
  21. 'scale',
  22. array( 'width' => 500,
  23.  'height'  => 350,
  24.  'direction' => ezcImageGeometryFilters::SCALE_DOWN
  25.  )
  26. )
  27. );
  28.  
  29. // Which MIME types the conversion may output
  30. $mimeTypes = array( 'image/jpeg' );
  31.  
  32. // Create the transformation inside the manager
  33. $converter->createTransformation( 'thumbnail', $scaleFilters, $mimeTypes );
  34.  
  35. // Transform an image.
  36. $converter->transform( 'thumbnail', "boathouse.jpg", "boathouse_tumbnail.jpg" );
  37. print( "<p><img src='boathouse_tumbnail.jpg' /></p>" );
  38. ?>
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
wipo
post
Post #2





Grupa: Zarejestrowani
Postów: 856
Pomógł: 19
Dołączył: 30.08.2005
Skąd: 100lica

Ostrzeżenie: (0%)
-----


W 27 linii wstaw ;
Pozatym masz napisane to w komunikacie błędu


--------------------
Go to the top of the page
+Quote Post
mariuszg
post
Post #3





Grupa: Zarejestrowani
Postów: 136
Pomógł: 0
Dołączył: 22.06.2006

Ostrzeżenie: (0%)
-----


nie pomogło
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 20:19