Plugin

Developer
Supported

CE Image

ExpressionEngine 1.x, ExpressionEngine 2, ExpressionEngine 3

Back to this add-on's main page
View Other Add-ons From Causing Effect

     

You must be logged in to post.

CE Image and Amazon S3 (In Progress)

Support Request

Jim Pannell
Jim Pannell

Hey Aaron

I have a real estate site with approximately 4000 properties. All the images are either uploaded locally or remote images hosted by third party real estate agents. What I’d like to do is use CE Image to resize these images and cache them to my Amazon S3 account. Is this possible at the moment?

I assumed that that was how the S3 integration worked, but the more I read, the more I realise that it’s probably when the source images are already on S3?

Cheers


Jim

Causing Effect - Aaron Waldon
# 1
Developer
Causing Effect - Aaron Waldon

Hi Jim!

The source images do not need to be on S3. ;) You can keep your images in place where they currently are. CE Image will simply upload the manipulated versions to the CDN to leverage their superior delivery speed.

Regards,

Aaron

Jim Pannell
# 2
Jim Pannell

Good to know! For some reason this isn’t happening for me though. The urls are created on the front end, but nothing actually gets uploaded to the bucket. I’ve changed he bucket perms to allow everyone to upload for testing, but no dice.

I’m using ee 1.6.8 btw. Any info you need from me?

Cheers

Jim

Causing Effect - Aaron Waldon
# 3
Developer
Causing Effect - Aaron Waldon

Hi Jim!

Which version of CE Image are you using? Also, have you entered your config info?

$config['ce_image_aws_key''';
$config['ce_image_aws_secret_key''';
$config['ce_image_bucket'''
Causing Effect - Aaron Waldon
# 4
Developer
Causing Effect - Aaron Waldon

Did you get it working Jim?

Causing Effect - Aaron Waldon
# 5
Developer
Causing Effect - Aaron Waldon

Any luck on this Jim?

Jim Pannell
# 6
Jim Pannell

Hey Aaron

Sorry for the long delay! I’m using 2.1.3 and yes, my s3 info is in the config file. New to S3 though so wondering if it could be a problem at that end.

Cheers


Jim

Causing Effect - Aaron Waldon
# 7
Developer
Causing Effect - Aaron Waldon

Hmm. Does your system meet the Amazon S3 requirements for use with CE Image?

Jim Pannell
# 8
Jim Pannell

Hi Aaron

I’m fairly sure I have everything installed and set up correctly.

The urls that are being generated by the exp:ce_img tag are as follows:

http://myfrenchhouse.s3.amazonaws.com/images/made/image-repository/properties/3/2011/11/10/lounge_1_100_67.jpg

But nothing is getting uploaded.

Here’s an example of my tags: {exp:ce_img:pair src=”{image_file}” bucket=“myfrenchhouse” width=“100” height=“67” cache=“yes” refresh=“360”}{aws_url}{/exp:ce_img:pair}

Does everything look okay with that?

Also, as I’m using EE1 I have my S3 info in /system/config.php. It’s as follows:

// CE Image Configuration
$conf[‘ce_image_cache_dir’] = “/images/made/”;
$conf[‘ce_image_remote_dir’] = “/images/remote/”;
$conf[‘ce_image_memory_limit’] = “128”;
$conf[‘ce_image_remote_cache_time’] = “1440”;
$conf[‘ce_image_quality’] = “100”;

// Amazon s3 config for CE Image
$conf[‘ce_image_aws_key’] = ‘my-key-here’;
$conf[‘ce_image_aws_secret_key’] = ‘my-secret-key’;
$conf[‘ce_image_bucket’] = ‘myfrenchhouse’;
$conf[‘ce_image_aws_request_headers’] = array();
$conf[‘ce_image_aws_request_headers’][‘Cache-Control’] = ‘max-age=’ . (30 * 24 * 60 * 60);
$conf[‘ce_image_aws_request_headers’][‘Expires’] = gmdate(“D, d M Y H:i:s T”, strtotime(’+1 month’) );

Any clues there?

Cheers


Jim
PS I’m running php 5.2.8 with Curl installed and working

Causing Effect - Aaron Waldon
# 9
Developer
Causing Effect - Aaron Waldon

Hi Jim!

When you say nothing is getting uploaded, you mean to the Amazon bucket? What are your bucket’s ACL permissions ? You may want to try adjusting those permissions to ensure the bucket is readable and writable for Authenticated Users, and readable for everyone else.

If that doesn’t work, and you’d like me to take a look, please shoot me an email at software at causingeffect.com with FTP Info and a super admin account.

gecah
# 10
gecah

A timeline template can be very useful to help you map out the timeline for your construction projects. It can help you see exactly how much time each stage of the work is going to take, and how much money will be needed for each part. You can also use a timeline template to help you plan the amount of time that you’ll need for your projects. And We Buy Houses Las Vegas and provide best home sellers with cash options. You can give yourself a rough timeline of when each stage is going to take place, and you can use a timeline template to help you plan the amount of time that you’ll need to get your projects done on time.