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.

Using ImgSizer - Serving assets from a subdomain

March 08, 2012 11:14pm

Subscribe [4]
  • #1 / Mar 08, 2012 11:14pm

    MelPax

    10 posts

    I see the plugin instructions:

    {exp:imgsizer:size src="/images/news/moped.jpg" width="100"}
    {sized}
    <div>/div>
    {/exp:imgsizer:size}

    But I am trying to pull from an entry (this is a news summary):

    {exp:channel:entries channel="this_channel" category="x" limit="1"}
        <a href=”{path=this_template_group/index}”>
          {exp:imgsizer:size src="{section_story_image}” width=“100” height=“100”}
                    {sized}
          {/exp:imgsizer:size}
        <a>
    {/exp:channel:entries}

    I have my file manager mapping to the assets_html folders (there are a bunch) on an Engine Hosting server. If I do not use any resizing my images show fine, but I need them to resize for the summary. In this instance how do I use ImgSizer? I have GD 2 enabled in my admin section. Any thoughts?

  • #2 / Mar 08, 2012 11:39pm

    Bhashkar Yadav

    727 posts

    Hi MelPax,

    can you check channel preference for “Allow image URLs in channel entries?” has “Yes” under “Channel Posting Preferences”.

    also use imgsizer like :

    {exp:imgsizer:size src="{section_story_image}" width="100" height="100"}
    {sized}
    {/exp:imgsizer:size}

    hope this would help you.

  • #3 / Mar 12, 2012 5:35pm

    TGP

    78 posts

    I think {sized} returns a url, not the whole image tag. try adding the image tag below…

    {exp:channel:entries channel=“this_channel” category=“x” limit=“1”}
        <a >
          {exp:imgsizer:size src=”{section_story_image}” width=“100” height=“100”}
                    {sized}
          {/exp:imgsizer:size}
        <a>
    {/exp:channel:entries}
  • #4 / Mar 13, 2012 12:34am

    the3mus1can

    426 posts

    Turn on Template debugging.  Imgsizer is very good about logging whats going on.  Also the title suggests you are serving the images from a subdomain. If this subdomain that the assets are on is different than the domain that EE is being served from you will need to add remote=“yes” to the imgsizer tag.

  • #5 / Jun 20, 2012 7:03am

    Willem Buys

    1 posts

    I’m facing a similar problem. However, I do not succeed in turning on Template Debugging for my subdomain. I did verify that I am logged in on the subdomain as well.

    Any tips how-to’s to using ImgSizer on the subdomain while using images from the main domain?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases