We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

plugin: Image Sizer

Development and Programming

PXLated's avatar
PXLated
1,800 posts
17 years ago
PXLated's avatar PXLated
Yikes…that sounds like a lot of work

Actually it’s not. I use that method on most sites I have images on. In addition to scaling it allows to sort by shape…all horizonta, all vertical, etc. If I have mixed B&W;and color I usually throw in a field for that also. An example: Marauders Sorting links at top.

       
Erin Dalzell's avatar
Erin Dalzell
790 posts
17 years ago
Erin Dalzell's avatar Erin Dalzell

I see. Ya, I just figured out I could test the height/width data myself and call image sizer myself. I have to decide whether or not to use image sizer or phpThumb…I am leaning toward image sizer right now as I like everything to be all integrated and I don’t have a need (at the moment) for all the capabilities of phpThumb.

Thanks

       
Dabbledoo's avatar
Dabbledoo
172 posts
17 years ago
Dabbledoo's avatar Dabbledoo

Hi Everyone - I just installed the plugin on our production site, and it’s not working. Here’s a little more about our structure…

We’ve got about 10 file upload folders in our File Upload Prefs section and are using 1 folder per blog (a multiple blog setup). I’m trying to use this on just one of our sites right now and the imgsizer tag is returning nothing. I already put the cache folder in the File upload folder I’m using, and set the permissions to 777. Here is exactly what I put in the template that is returning nothing:

{exp:weblog:entries weblog="appletell" orderby="date" sort="desc" limit="15" offset="3" disable=""}

{exp:imgsizer:size src="{thumbs}" height="100"}

{/exp:weblog:entries}

Any thoughts?

       
Erin Dalzell's avatar
Erin Dalzell
790 posts
17 years ago
Erin Dalzell's avatar Erin Dalzell
Any thoughts?

What is the ‘thumbs’ tag?

       
Dabbledoo's avatar
Dabbledoo
172 posts
17 years ago
Dabbledoo's avatar Dabbledoo

Sorry, {thumbs} is my custom field that contains the image URL. Is it possible there is another plugin / module / extension that is conflicting with imgsizer?

       
Erin Dalzell's avatar
Erin Dalzell
790 posts
17 years ago
Erin Dalzell's avatar Erin Dalzell

So if you View Source, you see nothing?

       
Dabbledoo's avatar
Dabbledoo
172 posts
17 years ago
Dabbledoo's avatar Dabbledoo

That is correct.

       
Casey Reid's avatar
Casey Reid
82 posts
17 years ago
Casey Reid's avatar Casey Reid

Can this plugin resize the image based on a percentage value of the original image size. So instead of using pixels, you could use percents and it would be that percent of the original image size. This can be done with phpThumb but this plugin seems like a great alternative I’d like to try.

       
lumis's avatar
lumis
119 posts
17 years ago
lumis's avatar lumis

Erin it already has max-sizes i have just hard coded it into the plug-in but i could open it up as a param. ill play around with that.

Dabbledoo if you just put in {thumbs}like below what is returned

{exp:weblog:entries weblog="appletell" orderby="date" sort="desc" limit="15" offset="3" disable=""}
{thumbs}
{/exp:weblog:entries}

also the plug-in does not return anything if it fails at finding the src img ect.

       
Erin Dalzell's avatar
Erin Dalzell
790 posts
17 years ago
Erin Dalzell's avatar Erin Dalzell
Erin it already has max-sizes i have just hard coded it into the plug-in but i could open it up as a param. ill play around with that.

Not a big deal, I coded around with EE conditionals

       
Dabbledoo's avatar
Dabbledoo
172 posts
17 years ago
Dabbledoo's avatar Dabbledoo

lumis -

here is a template with just the code you told me to put in:

http://www.appletell.com/apple/testimg/

thoughts?

       
Gonzalingui's avatar
Gonzalingui
13 posts
17 years ago
Gonzalingui's avatar Gonzalingui
lumis - here is a template with just the code you told me to put in: http://www.appletell.com/apple/testimg/ thoughts?

Are you trying to resize images from dabbledoo.com to show them in appletell.com? or appletell was just a “test server” where you put the test template?

This plugin doesn’t resize images from other servers.

If you are planning to use the plugin at dabbledoo.com, I think the problem is with your EE installation, which seems to be inside the “ee” folder.

If that is the problem, I think it’ll be fixed soon…

Anyway, that is what I think about your issue, wait and see what lumis responds

       
Dabbledoo's avatar
Dabbledoo
172 posts
17 years ago
Dabbledoo's avatar Dabbledoo

Thank you for the reply, Gonzalingui!

OK, our EE installation is on dabbledoo.com as you mentioned. We have several sites that run off of that installation. Appletell.com is getting all of its information from dabbledoo.com/ee… which is why the images are hosted on the dabbledoo.com domain.

Lumis.. your thoughts on the issue?

       
lumis's avatar
lumis
119 posts
17 years ago
lumis's avatar lumis

Gonzalingui Thanks for the ideas and your help dealing with EE setups that are not in the sites document root folder i have updated the plug-in for download to deal with setups like Gonzalingui’s i have also added in EE’s filename security (just in case)

Dabbledoo Well humm im not sure how that would work first it would have to fetch the remote image (since it is on a different domain and not available from the calling domains document root) and resize it

that would be no big deal to do really but i cant really check for updates on the remote image based on time. well sometimes you can but not really very reliably. and i don’t think you would want your server doing a http request for every image you are resizing.

I would assume that boath these sites are on the same server but have different document roots so could you not just create a symbolic link on www.appletell.com/ document root that points to the directory with your images on dabbledoo.com/

       
Dabbledoo's avatar
Dabbledoo
172 posts
17 years ago
Dabbledoo's avatar Dabbledoo

I used the instructions here to create a “symbolic link” between the appletell doc root and the appletell images folder on dabbledoo.com:

http://help.hardhathosting.com/question.php/95

Still does not work.

Your plugin works great from the dabbledoo.com domain… see here: http://www.dabbledoo.com/apple/testimg but it does not work from http://www.appletell.com/apple/testimg

Please advise. We really need your plugin to work since PhpThumb absolutely kills the server.

Thanks!

       
First 2 3 4 5 6 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.