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

nola's avatar
nola
2 posts
15 years ago
nola's avatar nola

I wasn’t sure whats up with the 2.0 version. I put the plugin into the directory system>expressionengine>plugins. but when I go to the add-on > plugins in my cms there’s no option to install it.

Did I miss a step? Am I installing in the wrong place? Anyone else encounter this?

*edit

Ok I figured it out. If anyone wants to know how to install plugins, they go into the system > expressionengine > third_party folder. actually put the whole folder in the /third_party folder.

Peace.

       
james Brown's avatar
james Brown
492 posts
15 years ago
james Brown's avatar james Brown

Haven’t tried the 2.0 version yet, but in older versions of EE, there is no install process. You just put it in the plugins directory and you are done! But, like I said, I don’t know if EE 2.0 has changed this process.

       
okayyellow's avatar
okayyellow
16 posts
15 years ago
okayyellow's avatar okayyellow

So i figured out a work around if you are using MSM and needed the full path to lead to the cache folder

I used “justurl” and then manually inserted the img tag

so…

http://www.mysite.com/{exp:imgsizer:size image=

a little more code, but totally worth it!

       
leemcalilly's avatar
leemcalilly
97 posts
15 years ago
leemcalilly's avatar leemcalilly

Where’s the version that works with the EE 2.0 public beta. I can’t seem to find this anywhere. Thanks!

       
Peter Lewis's avatar
Peter Lewis
280 posts
15 years ago
Peter Lewis's avatar Peter Lewis

Here

It’s in the very first post of this thread.

       
w84me's avatar
w84me
95 posts
15 years ago
w84me's avatar w84me

Hi all,

When i use this plugin no thumbs are displayed….What are the server requirements?

       
MotoNomad's avatar
MotoNomad
32 posts
15 years ago
MotoNomad's avatar MotoNomad
@okayyellow try this
{exp:imgsizer:size width="185" height="110" src="{image}" server_domain="http://www.mysite.com/"}
undocumented but it basically appends the domain to the image path on output.

The server_domain=”http://www.mysite.com/” trick works perfectly for me. (imgsizer - 2.5.6 & EE-1.6.8… not using MSM)

Just what I needed. Thanks @lumis!!!!!

       
MotoNomad's avatar
MotoNomad
32 posts
15 years ago
MotoNomad's avatar MotoNomad
Hi all, When i use this plugin no thumbs are displayed….What are the server requirements?

Make sure the permissions in the image upload directory(s) are set to write-able.

       
Peter Lewis's avatar
Peter Lewis
280 posts
15 years ago
Peter Lewis's avatar Peter Lewis

And make sure the “sized” folder has been created with 777 permissions.

       
w84me's avatar
w84me
95 posts
15 years ago
w84me's avatar w84me

uploads 777 sized 777 nothing happens…

       
Marin Bikes's avatar
Marin Bikes
45 posts
15 years ago
Marin Bikes's avatar Marin Bikes

Hello,

I am trying to use the img size tool inside of a category tag. When I do so it breaks the tags. When I remove the img sizer code everything works again. Does anyone one have a solution to this?

{exp:weblog:entries weblog="team" category="16|17"}
    {categories}
        {if category_id == "16"}
            <li class="story-{absolute_count}"><a href="http://{url_title_path=clubs/team_page}" title="{title}">{exp:imgsizer:size image="{images}" width="80" height="60" alt="{title}" class="left"}</a></li>
        {if:elseif category_id == "17"}
            <li class="story-{absolute_count}"><a href="http://{mururl}" title="{title}">{exp:imgsizer:size image="{images}" width="80" height="60" alt="{title}" class="left"}</a></li>
        {/if}
    {/categories}
{/exp:weblog:entries}

Thanks for any help and thank you for this great tool!

       
w84me's avatar
w84me
95 posts
15 years ago
w84me's avatar w84me

I get the following error

Warning: mkdir() [function.mkdir]: Permission denied

though images and sized are 777

       
mhulse's avatar
mhulse
329 posts
15 years ago
mhulse's avatar mhulse
I get the following error
Warning: mkdir() [function.mkdir]: Permission denied
though images and sized are 777

Same here. Using latest version (imageSizer v2.5.6 for ExpressionEngine 1.6.8 ) downloaded directly from plugin site.

Warning: mkdir() [function.mkdir]: Permission denied in /blah/blah/blah/plugins/pi.imgsizer.php on line 205

And when I test remote=”on”:

Warning: mkdir() [function.mkdir]: Permission denied in /blah/blah/blah/plugins/pi.imgsizer.php on line 684

Notice: getimagesize() [function.getimagesize]: Read error! in /blah/blah/blah/plugins/pi.imgsizer.php on line 151

Notice: Undefined index: dirname in /blah/blah/blah/plugins/pi.imgsizer.php on line 161
()

Which is not a huge deal, because I know it is experimental code. 😊

Loving this plugin though. Going to revert back to a working version (not enough time to investigate.)

Cheers, M

       
BC Team's avatar
BC Team
244 posts
15 years ago
BC Team's avatar BC Team
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.

Would you mind sharing how you did this?

Did you use php to get the width/height of the image? Then if width > height it’s a landscape image etc.

       
mhulse's avatar
mhulse
329 posts
15 years ago
mhulse's avatar mhulse
Did you use php to get the width/height of the image? Then if width > height it’s a landscape image etc.

Check out my SizePlus plugin. It gets you image width/height, ratio, plus a few other extras.

For example, here is how I get the width/height of swf, and set it as div background:



You can also pass through query string params, and have them available as template vars.

       
First 41 42 43 44 45 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.