Jump to content

akop

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

akop's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hi redarrow, here is the code without classes please check it first. With red I marked the place where it stops. As you can see the parts of the program that has been done immediately before are exactly of the same nature that means that is they are OK, the next one should be OK as well. And I also tried to change the order of them which didn’t help: the program now stops after the same period of time but during other resampling. [color=navy][size=10pt]    // Creating thumbnails     print "<b>Creating Thumbnails...</b>";     $img = new ss_image($orig_img, "f");     $img->set_size(150, 150, "-");     $new_name = $reference;     $img->output($where="../photos/preview_small/".$new_name, $what="c", $method="JPG");     print "&nbsp;&nbsp;&nbsp;&nbsp;<i>Done</i><br>";     // Creating intermediate size preview     print "<b>Creating an intermediate size inamges...</b>";     $img1 = new ss_image($orig_img, "f");     $img1->set_size(550, 550, "-");     $img1->commit();     print "&nbsp;&nbsp;&nbsp;&nbsp;<i>Done</i><br>";     // Watermark for intermediate size image     print "<b>Creating watermark...</b>";     $img1->watermark("../images/watermark_small.gif", $transparency=20, $x=20, $y=20, $makegray=true, $src_kind="f", $desired_w="*",$desired_h="*");     $img1->output($where="../photos/preview_big/".$new_name, $what="c", $method="JPG");     print "&nbsp;&nbsp;&nbsp;&nbsp;<i>Done</i><br>";     // Creating preview with original size and watermarks     print "<b>Creating an origanal size previews...</b>";     $img2 = new ss_image($orig_img, "f");     $img2->set_size("*", "*");     $img2->commit();     print "&nbsp;&nbsp;&nbsp;&nbsp;<i>Done</i><br>";     // Watermark for original size previews     $img2->watermark("../images/watermark.gif", $transparency=20, $x=20, $y=20, $makegray=true, $src_kind="f", $desired_w="*",$desired_h="*");     $img2->output($where="../photos/preview_orig_size/".$new_name, $what="c", $method="JPG");     // Creating cover and double versions $path = "../photos/cover/".$new_name;     print "<b>Creating Cover size version...</b>";     if(!copy($orig_img, $path))     {         print "Couldn't copy the cover size file...";     }     else     {         print "&nbsp;&nbsp;&nbsp;&nbsp;<i>Done</i><br>";     } print "<b>Creating Double size version...</b>"; $path = "../photos/double/".$new_name; if(!copy($orig_img, $path))     {         print "Couldn't copy the double size file...";     }     else     {         print "&nbsp;&nbsp;&nbsp;&nbsp;<i>Done</i><br>";     } // Creating 1/2 (2250 x 1490 px) size version     print "<b>Creating 2250 x 1490 px version...</b>";     $img2 = new ss_image($orig_img, "f");     $img2->set_size("2250", "2250", "-");     $img2->output($where="../photos/size_2250/".$new_name, $what="c", $method="JPG");     $img2->commit();     print "&nbsp;&nbsp;&nbsp;&nbsp;<i>Done</i><br>"; // Creating 1/4 (1500 x 1000 px) size version     [color=red]print "<b>Creating 1500 x 1000 px version...</b>";[/color]  >:(     $img2 = new ss_image($orig_img, "f");     $img2->set_size("1500", "1500", "-");     $img2->output($where="../photos/size_1500/".$new_name, $what="c", $method="JPG");     $img2->commit();     print "&nbsp;&nbsp;&nbsp;&nbsp;<i>Done</i><br>";     // Creating 1/8 (750 x 496 px) size version     print "<b>Creating 750 x 496 px version...</b>";     $img2 = new ss_image($orig_img, "f");     $img2->set_size("750", "750", "-");     $img2->output($where="../photos/size_750/".$new_name, $what="c", $method="JPG");     $img2->commit();     print "&nbsp;&nbsp;&nbsp;&nbsp;<i>Done</i><br>";     // Copy original images to a new location     $path = "../photos/originals/".$new_name;     print "<b>Coping Original images into new location...</b>";     if(!copy($orig_img, $path))     {         print "Couldn't copy the original file...";     }     else     {         print "&nbsp;&nbsp;&nbsp;&nbsp;<i>Done:</i>: <b><font color=\"green\" size=\"130%\">".$new_name."</font></b> was inserted<br>";     }[/size][/color]
  2. Hello dear freaks! The script in question works with [color=blue]GD library[/color] and what it is doing normally is creating several copies of original image that was submitted via form. Like this: [color=green]$img->set_size(150, 150, "-"); $img1->set_size(550, 550, "-"); $img2->set_size("2250", "2250", "-"); $img2->set_size("1500", "1500", "-");[/color] and some other sizes. Everything worked perfectly with my old provider but with the new provider problems started: Now it stops somewhere in the middle without any warnings or mistakes. Looks like this: Creating Database record...     Done Creating Thumbnails...    Done Creating an intermediate size inamges...    Done Creating watermark...    Done Creating an origanal size previews...    Done Creating Cover size version...    Done Creating Double size version...    Done Creating 2250 x 1490 px version...    Done [color=red]Creating 1500 x 1000 px version...[/color] Now the page finished loading like if the program has reached it's end. But it did not. I’m sure that the code is fine – I tested it on three other servers and it worked perfect there. max_execution_time is set to 150, all other php settings look fine at least for me.  Anyway, here is the link to phpinfo page: http://www.photo-traveller.net/phpini.php So the question is what might actually be the problem there? I also need to mention that the provider is very careful about security aka its own safety: there are a lot’s of restrictions when it comes to server configuration. The only thing I managed to change is put php.ini in the root folder with increased max_execution_time but it didn’t help  :(. ??? Thank you for any suggestions! Alex
  3. Hi shoz, I appreciate your help! Yes this is a shared histing. I looked for extension_dir in the phpinfo() and it is [color=orange]/usr/local/lib/php/extensions/no-debug-non-zts-20020429[/color]. It looks like I have no access to it. I tryed to put extension=exif.so into my custom php.ini and it didn't help. At the same time I got new reply from provider: [color=red]"Thank you for contacting customer support. Unfortunately, we cannot install this module. If you wish to have control over the server to install your own module you will need to purchase a virtual dedicated or dedicated server. We apologize for the confusion"[/color] Since I don't want to pay even more then I do now for such simple thing like exif support I'm canceling my account with this provider. I thank you all for your help! akop
  4. Thank you wildteen88, It is linux hosting and there is no exif in phpinfo and I actually tried to ask my hosting provider whether it is possible to change php configuration but the only answer I got - is that "You can enable modules within your php.ini file." They do not want to provide any farther assistance.  >:( regards, akop
  5. Hi, I've got new hosting but there is no [b][color=red]exif[/color][/b] in their php. I tried to call for support and their said to me that the only thing I can do is to try to use custom php.ini that will override native configuration. I’m principally familiar with this method but I’m not quite sure that it is really possible to get exif working on the linux server where php was not originally compiled with [b][color=red]exif[/color][/b]. Any suggestions would be very much appreciated! akop
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.