13 of 17
13
plugin: Image Sizer
Posted: 08 July 2008 01:14 PM   [ Ignore ]   [ # 217 ]  
Grad Student
Rank
Total Posts:  79
Joined  03-25-2006

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.

Profile
 
 
Posted: 09 July 2008 12:24 AM   [ Ignore ]   [ # 218 ]  
Lab Assistant
RankRank
Total Posts:  142
Joined  01-20-2008

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.

Any suggestions?

Profile
 
 
Posted: 09 July 2008 12:32 AM   [ Ignore ]   [ # 219 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  347
Joined  04-23-2008

Deborah,

Can you describe the behaviour of what you mean by it refusing to work? Do you see any cache folders being created in your default image directories?

 Signature 

Danny, your poor-man’s EE designer for hire/help.

Profile
 
 
Posted: 09 July 2008 12:46 AM   [ Ignore ]   [ # 220 ]  
Lab Assistant
RankRank
Total Posts:  142
Joined  01-20-2008

Sorry, a bit vague wasn’t it?!

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.

Thanks for your help. smile

Profile
 
 
Posted: 09 July 2008 12:52 AM   [ Ignore ]   [ # 221 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  347
Joined  04-23-2008

Deborah,

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.

 Signature 

Danny, your poor-man’s EE designer for hire/help.

Profile
 
 
Posted: 09 July 2008 01:14 AM   [ Ignore ]   [ # 222 ]  
Lab Assistant
RankRank
Total Posts:  142
Joined  01-20-2008

Yup, checked those cache folders - open to the world!

Here’s the block of code where I have attempted to display the image. In the profile form I have a relationship field that links to a photo gallery.

The regular img tag works fine (1), but neither of the imgsizer ones (2 and 3) display anything (or create anything in the cache folders).

{exp:weblog:entries weblog="profile" status="open"}
              
<h2>{title}</h2>
              
{related_entries id="profile_img"}
                       1.
<img src="{image_url}" alt="{caption}" title="{title}">
                       
2. {exp:imgsizer:size src="{image_url}" width="50" height="50" alt="{caption}" title="{title}"}

3.{exp
:imgsizer:size src="{image_url}" width="100"}
<img src="{sized}" width="{width}" height="{height}">
<
div style="background-image:url({sized}); width:{width}px; height:{height}px;"></div>
{/exp:imgsizer:size}
              {
/related_entries}
              {profile_body}
          {
/exp:weblog:entries}

Profile
 
 
Posted: 09 July 2008 01:28 AM   [ Ignore ]   [ # 223 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  347
Joined  04-23-2008

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?

 Signature 

Danny, your poor-man’s EE designer for hire/help.

Profile
 
 
Posted: 09 July 2008 08:39 AM   [ Ignore ]   [ # 224 ]  
Grad Student
Avatar
Rank
Total Posts:  99
Joined  09-16-2006

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.

Profile
 
 
Posted: 09 July 2008 07:45 PM   [ Ignore ]   [ # 225 ]  
Lab Assistant
RankRank
Total Posts:  142
Joined  01-20-2008

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.

Profile
 
 
Posted: 09 July 2008 09:04 PM   [ Ignore ]   [ # 226 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  347
Joined  04-23-2008

johnboat.. You should read more carefully. smile 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. smile

 Signature 

Danny, your poor-man’s EE designer for hire/help.

Profile
 
 
Posted: 10 July 2008 07:41 AM   [ Ignore ]   [ # 227 ]  
Grad Student
Avatar
Rank
Total Posts:  99
Joined  09-16-2006

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.

Profile
 
 
Posted: 10 July 2008 07:52 AM   [ Ignore ]   [ # 228 ]  
Grad Student
Avatar
Rank
Total Posts:  99
Joined  09-16-2006

Ok, it is working for me now. Something weird going on with my server I guess. I cleared the EE caches and Image Sizer caches and it is working.

Profile
 
 
Posted: 14 July 2008 01:19 AM   [ Ignore ]   [ # 229 ]  
Lab Assistant
RankRank
Total Posts:  142
Joined  01-20-2008

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?

Profile
 
 
Posted: 17 July 2008 03:03 PM   [ Ignore ]   [ # 230 ]  
Summer Student
Total Posts:  4
Joined  05-07-2008

I am having the same issue as Deborah. If I use:

<img src="{feature_photo}">


the image shows up fine, but if I use

{exp:imgsizer:size src="{feature_photo}" width="200" height="100" debug="1"}


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.

Profile
 
 
Posted: 17 July 2008 03:37 PM   [ Ignore ]   [ # 231 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  247
Joined  04-12-2008

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.

 Signature 

Designchuchi | Twitter

URL Field Extension
Required Category Extension
DC FreeForm GeoIP Extension

Profile
 
 
Posted: 17 July 2008 04:36 PM   [ Ignore ]   [ # 232 ]  
Lab Assistant
RankRank
Total Posts:  142
Joined  01-20-2008

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 -

Profile
 
 
Posted: 17 July 2008 09:39 PM   [ Ignore ]   [ # 233 ]  
Grad Student
Avatar
Rank
Total Posts:  98
Joined  03-10-2005

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

 Signature 

David Rencher
lumis.com
Image Sizer
eeFlickr
Photos

Profile
 
 
Posted: 18 July 2008 12:40 AM   [ Ignore ]   [ # 234 ]  
Lab Assistant
RankRank
Total Posts:  142
Joined  01-20-2008

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.

Profile
 
 
   
13 of 17
13
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65027 Total Logged-in Users: 20
Total Topics: 82117 Total Anonymous Users: 11
Total Replies: 441316 Total Guests: 199
Total Posts: 523433    
Members ( View Memberlist )