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

Helmi_xisnet's avatar
Helmi_xisnet
71 posts
15 years ago
Helmi_xisnet's avatar Helmi_xisnet

Hi all. Not sure if this is a bug: when I use remote=”on”, image filename with space character in it will not render. Any workaround?

       
webdeveloper's avatar
webdeveloper
11 posts
15 years ago
webdeveloper's avatar webdeveloper

Hi all,

[Background] I’m in the process of trying to get imgsizer (Lumis) up and running and I’m coming across a couple of problems. I’m running the latest version of EE2 (v2.0.2pb01) and copied across the imgsizer directory and PHP script (v2.6) into /third_party directory. This didn’t work, I discovered this thread and found there maybe a conflict with the system. the recommendation was to install 2.5.5 instead. I’ve now got 2.5.5 installed and running with 3 PHP warnings and notices:

A PHP Error was encountered Severity: Notice Message: Use of undefined constant PHP_URL_SCHEME - assumed ‘PHP_URL_SCHEME’ Filename: helpers/url_helper.php Line Number: 449 A PHP Error was encountered Severity: Warning Message: parse_url() expects exactly 1 parameter, 2 given Filename: helpers/url_helper.php Line Number: 449 A PHP Error was encountered Severity: Warning Message: Cannot modify header information - headers already sent by (output started at /213123/domains/example.com/html/system/core/Exceptions.php:166) Filename: core/Common.php Line Number: 424

[Problem] With these errors put to one side, I placed my code

{exp:imgsizer:size src="/content/images/grid/raw/5.png" width="200" alt="My Title" id="img_5334" class="entry_img"}

within the {exp:channel:entries} tag. When I access the page I get the following error and nothing else:

Fatal error: Call to a member function on a non-object in /1231231231/domains/example.com/html/system/expressionengine/third_party/imgsizer/pi.imgsizer.php on line 59

[Plead] Can anyone help?

David

       
webdeveloper's avatar
webdeveloper
11 posts
15 years ago
webdeveloper's avatar webdeveloper

In fact I’m working from an upgrade of the first 2.0PB. I’m going to reinstall.

       
webdeveloper's avatar
webdeveloper
11 posts
15 years ago
webdeveloper's avatar webdeveloper

So I’ve reinstalled and got setup. The 3 warning/notice errors have disappeared however, the white/blank screen still shows when using v2.6 so I’ve returned to V2.5.5 and I’m still getting the:

Fatal error: Call to a member function on a non-object in /123123123/domains/example.com/html/system/expressionengine/third_party/imgsizer/pi.imgsizer.php on line 59

… error. If anyone can help I’d be extremely grateful.

The invocation code I’m using is:

<div class="primary clearfix" id="gallery"> <ul id="gallery_content" class="grid"> {exp:channel:entries channel="gallery"} <li> <a href="http://{gallery_url}x" class="grid_main" target="_blank" rel="noopener">_ {exp:imgsizer:size src="/images/news/moped.jpg" width="300" height="180" alt="My Title" id="{entry_id}" class="entry_img"}_ </a> </li> {/exp:channel:entries} </ul> </div>

Can you spot the obvious mistake I’ve probably made?

Thanks,

David

       
webdeveloper's avatar
webdeveloper
11 posts
15 years ago
webdeveloper's avatar webdeveloper

I’ve just been in touch with MediaTemple, and they replied with:

The GD library is available on your hosting. The line that is generating that error does not have any relevance to said library, it seems to be a custom function to ‘remove double slashes.’ You may wish to consult the developer of this Addon for additional information about this problem.

It’s weird that no one else is experiencing this… maybe my version of 2.5.5 has been edited before I received it. Would someone be able to let me download it from them?

Thank you!

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
15 years ago
Sean C. Smith's avatar Sean C. Smith

Hello,

I’m using this plugin(v2.6) on with EE v2.0.2pb01 and getting the following error. The error seems strange as I have no problems creating directories anywhere else on the site… Any ideas?

A PHP Error was encountered Severity: Warning Message: mkdir() [function.mkdir]: Permission denied Filename: imgsizer/pi.imgsizer.php Line Number: 200
       
richardquay's avatar
richardquay
34 posts
15 years ago
richardquay's avatar richardquay

I am getting the same issue as sean…

Did anyone find the answer? Is there a place where I can download the pervious version?

thanks everyone!

       
James Hurst's avatar
James Hurst
48 posts
15 years ago
James Hurst's avatar James Hurst

I have hit a bit of a brick wall…

I am unable to get Image Sizer to play ball.

I am building the site on a subdomain and have tried refrencing the paths every which way. With template debugging switched on I can see that Image Sizer is picking up the images - and then it gets a little weird:

(1.072410) Tag: {exp:imgsizer:size src="/images/uploads/88621497.jpg" width="229" alt="This is a test" base_path="build.polishedconcretedesigns.co.uk/" base_cache="build.polishedconcretedesigns.co.uk/images/sized/"}
(1.072550) No Closing Tag
(1.072613) Tag: {exp:imgsizer:size src="/images/uploads/Superfloor-warehouse.jpg" width="229" alt="" base_path="build.polishedconcretedesigns.co.uk/" base_cache="build.polishedconcretedesigns.co.uk/images/sized/"}
(1.072750) No Closing Tag
(1.072811) Tag: {exp:imgsizer:size src="/images/uploads/New-Image-1.jpg" width="229" alt="" base_path="build.polishedconcretedesigns.co.uk/" base_cache="build.polishedconcretedesigns.co.uk/images/sized/"}
(1.072950) No Closing Tag
(1.073005) Processing Tags
(1.073030) Module Tag: Structure/nav_sub
(1.073050) Plugin Tag: Imgsizer/size
(1.073071) Plugin Tag: Imgsizer/size
(1.073089) Plugin Tag: Imgsizer/size
(1.073104) Including Files for Tag and Modules
(1.088874) Beginning Final Tag Data Processing
(1.088897) Calling Class/Method: Structure/nav_sub
(1.088994) -> Class Called: Structure
(1.089036) -> Method Called: nav_sub
(1.133071) -> Data Returned
(1.133148) Calling Class/Method: Imgsizer/size
(1.133246) -> Class Called: Imgsizer
(1.133267) -> Method Called: size
(1.133322) imgsizer.user.src: /images/uploads/88621497.jpg
(1.133376) imgsizer.img[src]: /images/uploads/88621497.jpg
(1.133385) imgsizer.img[base_path]: build.polishedconcretedesigns.co.uk/
(1.133405) imgsizer.img_full_path: build.polishedconcretedesigns.co.uk/images/uploads/88621497.jpg
(1.133420) imgsizer.Error: build.polishedconcretedesigns.co.uk/images/uploads/88621497.jpg image is not readable or does not exist

The template tag that printed out the code above is:

{exp:imgsizer:size src="{image_file}" width="229" alt="{image_alt}" base_path="build.polishedconcretedesigns.co.uk/" base_cache="build.polishedconcretedesigns.co.uk/images/sized/"}

I can see on the FTP that it isn’t generating the cached images (inside the folder ‘sized’ which has chmod 777 and is located in images/sized

I am using EE 1.6.9 and the version of the plugin is: 2.5.6

Many many many thanks for your help in advance - it is much appreciated…

James

       
Visibly Better Marketing's avatar
Visibly Better Marketing
93 posts
15 years ago
Visibly Better Marketing's avatar Visibly Better Marketing

Problems with using several instances on the same page:

<!-- define Magic Zoom Plus -->

        <a href="http://{product_image}" rel="zoom-position:inner" title="{title}" class="MagicZoomPlus">_        {exp:imgsizer:size src='{product_image}' width='480' alt='{title}'}_        </a> <br>


        <!-- define alternate views -->
        <a href="http://{product_image}" rel="zoom-id:Zoomer">_        {exp:imgsizer:size src="{product_image}" width='120' alt="{title}"}</a>

        <a href="http://{product_image2}" rel="zoom-id:Zoomer">_        {exp:imgsizer:size src="{product_image2}" width="120" alt="{title}"}</a>


        <a href="http://{product_image3}" rel="zoom-id:Zoomer">_        {exp:imgsizer:size src="{product_image3}" width="120" alt="{title}"}</a>

Any of the lines work fine on their own, but not together

The code I’m trying to create should look like the followong where version c is the full size image, b is a medium sized, and a is a thumbnail

<!-- define Magic Zoom Plus -->

        <a href="http://images/harley1c.jpg" title="Harley-Davidson Dyna Wide Glide" class="MagicZoomPlus">images/harley1b.jpg</a> <br>

 

        <!-- define alternate views -->

        <a href="http://images/harley1c.jpg" rel="zoom-id:Zoomer">images/harley1a.jpg</a>

        <a href="http://images/harley2c.jpg" rel="zoom-id:Zoomer">images/harley2a.jpg</a>
       
Visibly Better Marketing's avatar
Visibly Better Marketing
93 posts
15 years ago
Visibly Better Marketing's avatar Visibly Better Marketing

OK, fixed it. Seems mixing single tags and pairs on the same page causes issues.

       
pychap's avatar
pychap
69 posts
15 years ago
pychap's avatar pychap

Hi,

There seems to be allot of folks having issues with installing ImageSizer 2.5.6 on EE 1.6.8-9 into the Plugins folder and getting a blank screen in the CP Plugins section. One of the threads here. I am having the same problem.

One resolution appears to get ahold of version 2.5.5 (where?)

Or, if that version isn’t available, are there any other fixes to this (I tried uploading in ASCII format also to no avail)??

My project is basically on hold and I am in a bad spot now as I can’t implement this great little plugin.

Pete

       
theLim3y's avatar
theLim3y
11 posts
15 years ago
theLim3y's avatar theLim3y

I was having an issue with an undefined index on line 130. If anyone else is experiencing this throw a isset() around the img[ul_src’] should resolve it.

Great plugin whomever wrote it!

Original:

line 130: if($remote && $img['url_src']){

Fix:

if($remote && isset($img['url_src'])){
       
msfarrel's avatar
msfarrel
33 posts
15 years ago
msfarrel's avatar msfarrel

I’m getting nothing but blanks when I try using this plugin for EE 1.6.9. I’ve tried setting base_path, base_cache, and server_domain but no img tags are being displayed.

When I turn on template debug the paths are being displayed like this

http://example.com/expressionengine/

Could the missing /’s have something to do with it? Anyone else experience something like this?

       
Andrew Macpherson's avatar
Andrew Macpherson
38 posts
15 years ago
Andrew Macpherson's avatar Andrew Macpherson

OK, this one’s a real bummer!

Background: two EE2 sites under Multiple Site Manager developed on local machine and working without issue. Then the site was transferred to EngineHosting and suddenly the ImgSizer code, which is exactly the same as on the local dev server, is causing blank pages. Not the normal EE blank pages, but something different.

Safari returns this error message: “Safari can’t open the page “http://www.silkwormbooks.net/index.php/catalog/info/thailand-short-history” because the server unexpectedly dropped the connection. This sometimes occurs when the server is busy. Wait for a few minutes, and then try again.”

Chrome returns a slightly different message: “The webpage at -URL- might be temporarily down or it may have moved permanently to a new web address. Below is the original error message: Error 324 (net::ERR_EMPTY_RESPONSE): Unknown error”

Firefox displays a blank page with no message.

I’ve checked permissions on the cache folder, and everything seems to be okay. I’ve tried stripping out everything from the page and leaving only the imgsizer code, and that doesn’t helps. I have been able to get ED ImageResizer to work, but I’d prefer to stick with ImgSizer if it’s at all possible.

The EngineHosting people have been very helpful, but cannot provide any insight at all into what might be going wrong. I have also used older versions of ImgSizer under EE 1.6.x on EngineHosting without any problem. I don’t know if the problem is with ImgSizer, or the EngineHosting environment, or if something just got hosed when I moved the sites from server to server …

Any ideas from the forum here? Thanks in advance for any advice or guidance you may be able to give.

Andrew Macpherson Sydney, Australia

       
Andrew Macpherson's avatar
Andrew Macpherson
38 posts
15 years ago
Andrew Macpherson's avatar Andrew Macpherson

Oh, and one thing I just found out: I can get ImgSizer to work if I manually specify an image path (eg exp:imgsizer:size src=”/images/test.jpg’). The images I want it to process, though, are all from custom fields, uploading to a normal file upload directory. I’ve tried creating new upload directories, etc, but that doesn’t help.

       
First 49 50 51 52

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.