Search found 8 matches

by odd_duck
2016-10-07T01:08:42-07:00
Forum: Fred's Scripts
Topic: Using scripts with Amazon Cloudfront
Replies: 3
Views: 101971

Re: Using scripts with Amazon Cloudfront

Thanks. Is it possible to have the script on my server but use images off my amazon s3 (i have tried putting the image src as a file off my s3 bucket - it doesn't work but just incase i'm missing anything?)

Or does the image itself also have to reside on my server?
by odd_duck
2016-03-04T08:02:35-07:00
Forum: Fred's Scripts
Topic: Using scripts with Amazon Cloudfront
Replies: 3
Views: 101971

Using scripts with Amazon Cloudfront

I'm testing out Fred's cyclinderize script and it works fine on my server. Now the problem is on my website: The majority of my images are dynamically created/sized (with php imagick) and are delivered on Amazon Cloudfront. See this link for full info: http://www.sitepoint.com/dynamic-image-delivery ...
by odd_duck
2016-02-24T04:32:07-07:00
Forum: Fred's Scripts
Topic: Cylinderize script and PHP help
Replies: 14
Views: 45826

Re: Cylinderize script and PHP help

Managed to get this working now by using passthru and echo'ing it out after setting the header type <?php $docRoot = getenv("DOCUMENT_ROOT"); header("Content-type: image/jpeg"); echo passthru("bash ".$docRoot."/cylinderize.sh -m vertical -r 150 -l 310 -w 100 -p 6 -d both -e 1.4 -a 0 -v background -b ...
by odd_duck
2016-02-23T10:19:54-07:00
Forum: Fred's Scripts
Topic: Cylinderize script and PHP help
Replies: 14
Views: 45826

Re: Cylinderize script and PHP help

Really sorry to keep going on but when I try either of the above I get an output of: http://tiltworld.co.uk/cylinder.php For that page my exact code is below but I have also tried without the header(Content...) with the same result. <?php $docRoot = getenv("DOCUMENT_ROOT"); system("bash ".$docRoot ...
by odd_duck
2016-02-23T09:51:35-07:00
Forum: Fred's Scripts
Topic: Cylinderize script and PHP help
Replies: 14
Views: 45826

Re: Cylinderize script and PHP help

The main thing is making sure I can output the file as an image in the browser without actually saving it on the server? Is that possible?
by odd_duck
2016-02-23T09:00:37-07:00
Forum: Fred's Scripts
Topic: Cylinderize script and PHP help
Replies: 14
Views: 45826

Re: Cylinderize script and PHP help

Thank you Bonzo, really appreciate that. it all works and now saves the file as output.png like you state at the end of the command. Is there way I can store the image as a variable (to use later on in my script) rather than saving it onto the server? I'd like to output it like so in the browser not ...
by odd_duck
2016-02-23T05:41:54-07:00
Forum: Fred's Scripts
Topic: Cylinderize script and PHP help
Replies: 14
Views: 45826

Cylinderize script and PHP help

I am trying to get to grips with Fred's cylinderize script in PHP but as of yet cannot output anything. I am also new to using php's exec() function. I have installed the sh script, and also bc onto my server. I am trying to replicate the 'Pitch in Both Directions' example here: http://www ...
by odd_duck
2016-02-19T03:45:46-07:00
Forum: IMagick
Topic: Warp Image around cylinder
Replies: 1
Views: 9215

Warp Image around cylinder

I am just starting to learn PHP's Imagick library and I am needing to warp an image around a cyclinder mug - similar to this: http://i.stack.imgur.com/G3oDr.jpg Getting started with Imagick i have been using the following examples: http://www.phpimagick.com/Imagick/rotateImage To successfully rotate ...