No go here. I’ve placed cache directories where they should go with 777 permissions, I’ve tweaked all the variables, and I’ve even hard coded image urls rather than use EE tags for gallery entries. No matter what I do the Image Sizer plug in does not parse. Nothing is returned, just blank space? Any ideas? I’d love to use this rather than phpThumb.
I’ve been using this fabulous plugin with no problems, but today I built a new site and Image Sizer just refuses to work in it. I’ve created the cache folders and all that. I’ve had server admin double check all the settings.
At first I thought it might be because the website and the control panel are accessed via different URLs/folders, but then I realised I already have sites set up that way and working fine.
The only real difference I can see between this new site and the others is the structure of the URL.
All the others are www.anu.edu.au/area, but this new site is www-area.anu.edu.au
I tried the suggestion a few posts back from impdesigns about removing the _ENV lines, but this didn’t have any effect.
When I use a regular image tag, the image displays fine in the page. When I add the Image Sizer tag, no image displays.
No cache folders were/are being created. So I went into the server and created them myself.
But there are still no images in it.
I’m thinking that maybe it can’t find the right path, since Image Sizer works fine on all my other sites. All my other sites have the same start to the URL, and the image path has the same start - www.anu.edu.au/area
This site has a different url: www-area.anu.edu.au, and the images are at www.anu.edu.au/area
I’m thinking about getting the admin to change the url, just to see if it fixes the problem. Will report back if/when I get anywhere with this.
Have you made sure the cache folders have the proper permissions since you’ve created them? Since there all hosted on the same server, I don’t think there is an issue with the different url’s, as you’ve provided direct paths to the folders themselves on your host.
And one more thing.. Are you using single tag or the tag pairs? I’ve had more success with the tag pairs than otherwise.
Code looks clean.. Looks like I won’t be of much help, but in any case you might be right about the absolute paths, etc. to the images on your box. Have you tried running Image Sizer on a more simple task, such as just resizing a weblog entry associated image rather than the related entries to try and isolate/determine the issue?
If I have a square image and I want to resize it to a rectangle by cropping off equal bits from the top and bottom can Image Sizer do that? In other words I don’t want it to resize the image proportionally, I just want it to crop off the excess. For example if it is a 500x500 image and I set the height to 250 I want a cropped image of 500x250
From reading through this post I think the answer is no, but I wanted to be sure I’m not missing something.
Fantastic plugin btw. I may not be able to use it on this project (need the above functionality) but I am sure it will come in handy in the future.
mr_dimsum, I tried something much simpler, like placing an image in a folder on the server and manually entering the URL. Again, normal IMG tag displays it fine, but Image Sizer doesn’t do anything with the image. Something strange going on here. Will hold off further testing until my admins change the URL for access and see what happens then I think.
johnboat.. You should read more carefully. I actually asked the exact same thing and was provided a clear answer. Back to your q!.. It works as to how you want it.
Thanks for the reply mr_dimsum. I did read the entire thread including your question (as well as the documentation) I just never quite understood the answer (sorry, sometimes what is clear for one person may not be for another. People are just different I guess.)
At any rate, I have tried it with all the variations I can think of including height no width, width and height and setting auto= as the author replied to one post but I always end up with a square.
I am sure you are right and I am just misunderstanding or missing something but as of yet I am unable to get it to crop from a square to a rectangle.
I still can’t get Image Sizer to work on my site :(
I think it may be somehow connected to access to the cache folder/s for this particular site.
I have a number of sites installed via Multiple Site Manager and a number of Photo Galleries.
I want our Alumni Website and the Alumni Photo Gallery to hook up.
I can use the Alumni Photo Gallery in any other site with Imagesizer and it works fine. It finds the image folder and adds the image to the cache area, then displays the image on the site.
It doesn’t matter which Photo Gallery I try to use with the Alumni Site - nothing will display within the Image Sizer tag, and no other version of the image gets loaded to the relevant Cache folder.
It doesn’t matter whether I try to do it via Related Entries or even hard code the URL in. No image is displayed.
So it could be a permissions problem? Does anyone have any advice on what settings I could check?
no image displays. The debug parameter causes the message “/image.jpg is not readable” to show. No images show up in the cache folder either. It is set with 777 permissions.
The site I am working on is under redesign. I have EE installed in a sub-directory “/gm/ee/”. I have tried the suggestion to use “cache=‘no’” with no luck. I also tried impdesigns’ solution to alter the PHP plugin.
If anyone has any suggestions, I’m willing to try anything. Thanks in advance.
I’d really love to give this plugin another chance, but I seem to have the same problems as the last two posts: I cannot get it working.
phpThumb works just fine, but I think imgsizer would be a lesser overhead than phpThumb, as I really only need the resizing and not all the other fancy stuff phpThumb can do.
Any ideas? Also adding debug=“1” parameter does not give me anything, digging into the code does not seem like an option timewise.
- Apache 2.2.8
- PHP Version 5.2.6
EDIT: I’m guessing where the error is, the site is still under production and running on a “temporary” URL (not the actual domain yet) containing http://someserver.com/~username in the url. That might be the problem as so often with many plugins.
I’m gonna report back as soon as we got it up and running on a domain.
Debugging didn’t give me any information of interest:
(0.387105) Parsing Tags in Template
(0.387251) Tag: {exp:imgsizer:size src=“http://oursite/folder/080220ANU-111.jpg” width=“50px” height=“50px” alt=”<p>Detail of poster advertising the ANU Film Society </p>” title=“080220ANU-111” }
(0.387904) No Closing Tag
(0.388190) Tag: {exp:imgsizer:size src=“http://oursite/folder/TanHaur.jpg” width=“50px” height=“50px” alt=”<p>Tan Haur </p>” title=“Tan Haur” }
(0.388660) No Closing Tag
(0.388829) Processing Tags
(0.388941) Plugin Tag: Imgsizer/size
(0.389003) Plugin Tag: Imgsizer/size
(0.389051) Including Files for Tag and Modules
(0.396382) Beginning Final Tag Data Processing
(0.396486) Calling Class/Method: Imgsizer/size
(0.396847) -> Class Called: Imgsizer
(0.396918) -> Method Called: size
(0.397597) -> Data Returned
(0.397743) Calling Class/Method: Imgsizer/size
(0.397972) -> Class Called: Imgsizer
(0.398027) -> Method Called: size
(0.398514) -> Data Returned
(0.398650) - End Tag Processing -
Deborah Cross & Derek Greer
it looks like for some reason it is not locating your image
that so far has been one of the parts of this plug-in that is really tricky. Short of putting a param for the EE set filedir or hardcoding DOCUMENT_ROOT in as a param on the tag, the plug-in has to try and figure out where the image really is on the server.. I did not want to use the filedir settings from the EE CP because i did not want to limit the plug-in to working only within a directory.
it works grate for me on EngneHosting and Dreamhost but it relies on ether the Server set variables or Environment Variables DOCUMENT_ROOT because you are not hard coding the full root path in.
I posted a new version that may help. it also has some more output if using debug=1 to help troubleshoot
anyway short of me logging into your account its hard to nail down a problem if i cant reproduce it.
also any variables passed into the src=”” have to be local to the domain running the tags it will not fetch remote URL’s from other domains even if those domains are on the same server.
also Deborah
{exp:imgsizer:size src="http://oursite/folder/TanHaur.jpg" width="50px" height="50px" alt="<p>Tan Haur </p>” title="Tan Haur” }
i am assuming that “http://oursite/folder/TanHaur.jpg” is not really what you are passing into the src=
also you have paragraph <p> tags in your alt=”” and your title= has a different encoded quote that could just be the way you copied and pasted into the forum
Thanx David. Yes the code I dumped in is not 100% what we are doing. I removed our url for security.
The whole P tag thing is a problem we’re having with the caption field in the image gallery.
I do think the quotation problem is something to do with cutting and pasting as it appears fine in our code, but I’ll double check.
I’ll download your file and give it another go and report back here.