Search found 9 matches

by bruno1970
2012-10-17T17:45:33-07:00
Forum: IMagick
Topic: Upload form with IMagick
Replies: 20
Views: 39870

Re: Upload form with IMagick

I have found the problem! This code works: $new_image = $arr['img_src']; ####CROP | RESIZE THE THUMBNAIL TO 450x450 | ADD BORDER 50x50#### $save_to = $uploaddir.$orginal; exec("/usr/bin/ImageMagick_6.2.6/bin/convert $new_image -crop {$height}x{$width}+$x+$y -resize 450x450 -bordercolor black -border ...
by bruno1970
2012-10-17T15:29:17-07:00
Forum: IMagick
Topic: Upload form with IMagick
Replies: 20
Views: 39870

Re: Upload form with IMagick

.
by bruno1970
2012-10-17T13:01:54-07:00
Forum: IMagick
Topic: Upload form with IMagick
Replies: 20
Views: 39870

Re: Upload form with IMagick

I get the error message Undefined variable: thumbnail and i have no idea how to define $thumbnail (after hours of try&error). :? $new_image = $arr['img_src']; ####CROP | RESIZE THE THUMBNAIL TO 450x450 | ADD BORDER 50x50#### $save_to = $uploaddir.$thumbnail; $arr['img_src'] is not only the filename ...
by bruno1970
2012-10-16T15:47:13-07:00
Forum: IMagick
Topic: Upload form with IMagick
Replies: 20
Views: 39870

Re: Upload form with IMagick

Actually the form I use is: -crop ${height}x${width}+$x+$y with the $ outside the braces I can not test it because i only get errors with my code or i see nothing. :? Can you tell me please how i have to change the code? if($_GET['act'] == 'thumb'){ $arr = array( 'uploaddir' => 'uploads/thumb ...
by bruno1970
2012-10-16T12:15:09-07:00
Forum: IMagick
Topic: Upload form with IMagick
Replies: 20
Views: 39870

Re: Upload form with IMagick

You are using "comandline Imagemagick with exec()" NOT Imagick at all. O.K. I will never write Imagick again. :) I also put the $ into the curly brackets: -crop {$height}x{$width}+$x+$y That was fmw42s idea... ;) -watermark works with composite and not convert: I have found the convert-version here ...
by bruno1970
2012-10-15T22:18:36-07:00
Forum: IMagick
Topic: Upload form with IMagick
Replies: 20
Views: 39870

Re: Upload form with IMagick

You cannot combine convert and composite in the same command. In this case you must use two separate commands. One starting with convert and the latter starting with composite for the watermark. Is that correct?: if($_GET['act'] == 'thumb'){ $arr = array( 'uploaddir' => 'uploads/thumb/', 'tempdir ...
by bruno1970
2012-10-15T21:50:25-07:00
Forum: IMagick
Topic: Upload form with IMagick
Replies: 20
Views: 39870

Re: Upload form with IMagick

You are using an ancient version of IM. Version 6.2.6 is 540 versions old I have checked that. My hoster has now a newer version. imagick module version: 3.0.1 imagick classes: Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator ImageMagick version: ImageMagick 6.5.7-8 2012-08-17 Q16 http ...
by bruno1970
2012-10-15T20:43:29-07:00
Forum: IMagick
Topic: Upload form with IMagick
Replies: 20
Views: 39870

Re: Upload form with IMagick

Thank you. Only this version works: do { // move and rename $neuer_name = renameFile($myFILE['name']); $new_image = $ordner.$neuer_name; } while(file_exists($new_image)); if(@move_uploaded_file($myFILE['tmp_name'], $ordner.$neuer_name)){ $new_image2 = $new_image; exec("/usr/bin/ImageMagick_6.2.6/bin ...
by bruno1970
2012-10-13T18:32:56-07:00
Forum: IMagick
Topic: Upload form with IMagick
Replies: 20
Views: 39870

Upload form with IMagick

Hello. Who can help me with my upload-form? I want to put this code into the code of my upload-form: exec("convert $original_image -thumbnail 250 250 $new_image"); Upload Form: function checkUpload($myFILE, $file_extensions, $mime_types, $maxsize) { $errors = array(); switch ($myFILE['error']){ case ...