ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Image Sizer within Magpie - EE2.1

August 23, 2010 11:52pm

Subscribe [4]
  • #1 / Aug 23, 2010 11:52pm

    jschutt

    452 posts

    Hello All! 

    I’m working on solving an issue with resizing images on a remote server that are provided via an RSS feed.  The feed contains the title and a url to the full size image file. Here is the code that I am currently using.

    
    
    

    According to the template debugging logs, the RSS is coming in, and imagesizer is processing the thumbs.  However, it is breaking when I try to use the imagesizer variables, {sized}, {width}, {height}. 

    Any ideas on how I can modify this to work properly?

  • #2 / Aug 24, 2010 12:25am

    Focus Lab Dev Team

    1129 posts

    Why do you have parse=“inward” on your imgsizer tag as well? Could that be messing you up?

  • #3 / Aug 24, 2010 12:26am

    jschutt

    452 posts

    Yeah, I’d added that hoping that it might help!  ImageSizer doesn’t process anything if parse=“inward” isn’t on Magpie, so I thought it might work on ImageSizer.  It doesn’t :(

  • #4 / Aug 24, 2010 1:07am

    jschutt

    452 posts

    After some crazy php and template embedding, I got this cobbled together and working.  I’d sure like to hear what an admin has to say about the template parsing order in this case though.  It would be much easier to do it the way I outlined above instead of what I’m having to do now!

  • #5 / Sep 06, 2010 6:53pm

    11Media

    157 posts

    Hi,

    How did you get this working?

    Im getting an error:

    A PHP Error was encountered
    
    Severity: Notice
    
    Message: Undefined index: url_src
    
    Filename: imgsizer/pi.imgsizer.php
    
    Line Number: 127
    A PHP Error was encountered
    
    Severity: Warning
    
    Message: Cannot modify header information - headers already sent by (output started at /home/al334/public_html/system/codeigniter/system/core/Exceptions.php:171)
    
    Filename: core/Common.php
    
    Line Number: 428


    Basically, image sizer doesn’t work with “remote=“on” - any ideas?


    Code:

    {exp:imgsizer:size src="{image}" width="110" remote="on"}
    {sized}
    {/exp:imgsizer:size}
  • #6 / Sep 07, 2010 1:20pm

    jschutt

    452 posts

    Are you trying to run ImageSizer inside of the Magpie plugin?

  • #7 / Aug 09, 2012 2:11pm

    iworktoomuch

    3 posts

    A PHP Error was encountered
    
    Severity: Notice
    
    Message: Undefined index: url_src
    
    Filename: imgsizer/pi.imgsizer.php
    
    Line Number: 127
    A PHP Error was encountered
    
    Severity: Warning
    
    Message: Cannot modify header information - headers already sent by (output started at /home/al334/public_html/system/codeigniter/system/core/Exceptions.php:171)
    
    Filename: core/Common.php
    
    Line Number: 428

    This error is most likely because you are trying to validate the existence of a key in an array via:

    if($remote && $img['url_src']) {
    ...

    instead change it to:

    if($remote && array_key_exists('url_src', $img)) {
    ...
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases