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

trouble with image sizer plugin

Development and Programming

ummedia's avatar
ummedia
462 posts
16 years ago
ummedia's avatar ummedia

I am trying to get the image sizer plugin to work but not even close. I am using this code

{exp:imgsizer:size src="images/uploads/watchimages/dw210.jpg" width="100" alt="My Title" id="{entry_id}” class=”entry_img”}

I know the the jpg images is there. If this code is correct the only other prblem I came up against was when I created my cache it just disappeared is this an ISP problem (they wont allow you to create cahe folders possibly)

help please

Adam

[Mod Edit: Moved to the Plugin: Discussions and Questions forum]

       
Greg Aker's avatar
Greg Aker
6,022 posts
16 years ago
Greg Aker's avatar Greg Aker

I suspect it could do with your image path. Try /images/uploads/etc and let us know if that gets you close.

Regards,

-greg

       
ummedia's avatar
ummedia
462 posts
16 years ago
ummedia's avatar ummedia

Thanks Greg but that made no difference.

regards

Adam

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Have you tried with a full server path such as :

http://www.example.com/images/uploads/watchimages/sw210.jpg

Also if you check the image URL in a browser does it show all right? May be a permissions issue. Also did you create (if the plugin hasn’t done it for you) a cache folder (all write permissions needed) in the same folder as where the images are located?

Someone was having a problem with this not long ago but they were using a hosts file to go to an IP located server.

Hope some of that makes sense and helps a bit.

Best wishes,

Mark

       
ummedia's avatar
ummedia
462 posts
16 years ago
ummedia's avatar ummedia

I think it is something to do with this cache folder I created it with FTP and it disappeared my ISP is looking at it now. Mark I have been following the threads about file extension and image sizer, Could you tell me if file upload can be told what compression to recreate the files it creates. I had got the files down to 20-30k it has manged to get them up to 120-130k.

regards

Adam

       
ummedia's avatar
ummedia
462 posts
16 years ago
ummedia's avatar ummedia

I now have the image working using

{exp:imgsizer:size src="/images/uploads/watchimages/dw2101.jpg" width="100" alt="{image1}” id=”{entry_id}” class=”centred”}

the error was because of the cache folder went a bit squiffy. How do I now call the fileusing something like {image1} instead of the whats there now I tried {image1}(which is the custom field name) and that didnt work. How does everybody else do it?

many thanks

Adam

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Hi Adam,

I think it is something to do with this cache folder I created it with FTP and it disappeared my ISP is looking at it now. Mark I have been following the threads about file extension and image sizer, Could you tell me if file upload can be told what compression to recreate the files it creates. I had got the files down to 20-30k it has manged to get them up to 120-130k. regards Adam

Not too sure about that one. The File extension should literally just upload the files and not re-size them at all. I’ve used the File extension on a number of sites and have never seen it do that so not too sure what that would be I’m afraid. There might be mention of it in the File extension thread if other people have had that problem before though.

I now have the image working using {exp:imgsizer:size src="/images/uploads/watchimages/dw2101.jpg" width="100" alt="{image1}” id=”{entry_id}” class=”centred”} the error was because of the cache folder went a bit squiffy. How do I now call the fileusing something like {image1} instead of the whats there now I tried {image1}(which is the custom field name) and that didnt work. How does everybody else do it? many thanks Adam

If you are using the File extension then to use it in conjunction with the Image Sizer plugin then you should just be able to do this :

{exp:imgsizer:size src="{image1}" width="110" height="110" alt="{title}" title="{title}" id="{url_title}" class="{title}"}

That should work if you are just uploading one image to the File field as I do this on quite a few sites. I see that you are using {image1} as the alt tag in the Image Sizer plugin so just wondering does that work? If so then it should also work for the src=”“ parameter too.

Best wishes,

Mark

       
ummedia's avatar
ummedia
462 posts
16 years ago
ummedia's avatar ummedia

Mark I finally got everything working. I will look at the image size problem later. I had not put the tag in its brackets that I saw you had mentioned in another thread {image1}{/image1} that was it really. I would also like to know how I put a link on the thumbnail with this method if you could help.

regards

Adam

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Hi Adam,

When you say a link on the thumbnail, what do you mean exactly? Where do you want the thumbnail to link to exactly?

If you can show some template code that you have so far and say where you want it to link to then I should be able to help you out.

You can do things like this though :

<a href="http://{image1}" rel="lightbox" title="{title}">{exp:imgsizer:size src="{image1}" width="110" height="110" alt="{title}" title="{title}" id="{url_title}" class="{title}"}</a>

Best wishes,

Mark

       
ummedia's avatar
ummedia
462 posts
16 years ago
ummedia's avatar ummedia

great Mark thats exactly what I wanted. On another level do you use SAEF with these plugins and add ons to let members upload information? Should I start another thread with this?

regards

Adam

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Hi Adam,

Excellent news. Glad you have it sorted now 😊

On the part of SAEF I don’t currently use the File extension for that as I have never been able to get it working although that was when the extension first came out. I know a lot of people have had it working with the latest version but I haven’t really ever had the need to do that so no sorry but I’ve never used it with an SAEF.

How much information would you be needing to get from people and what for? The way I have done this before is to use the Freeform module e-mailing to a Moblog e-mail address and getting the file uploaded using the Freeform module and the data placed into the weblog via the Moblog. A slight workaround but once you have it all set up properly then it can be really quite neat.

Best wishes,

Mark

       
ummedia's avatar
ummedia
462 posts
16 years ago
ummedia's avatar ummedia

ok that sound a little scary. If you look at digitalwatchlibrary.com you’ll see what I mean Id like the members to be able to upload their own watches(simple as that(yeah right!)

regards

Adam

       

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.