Railo
  1. Railo
  2. RAILO-479

When resizing an image to a width of same size, an error occurs

    Details

    • Type: Bug Bug
    • Status: Resolved (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: 3.1 Final (3.1.1.012)
    • Fix Version/s: 3.1 Final (3.1.1.016)
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Environment:
      railo all
    • Similar Issues:
      Show 10 results 

      Description

      Check the following code:
      <cfimage action="read" source="#expandPath('example100x100.gif')#" name="imgData" />
      <cfimage action="resize" destination="#expandPath('newfile.gif')#" source="#imgData#" quality="0.8" width="100" overwrite="yes" />

      The error will occur with error-message '100', which is the width value.
      The error only occurs when the resize-width is the same as the original width. (height not checked)

      Stack trace:
      100
      at java.awt.image.SinglePixelPackedSampleModel.setPixels(SinglePixelPackedSampleModel.java:671):671
      at java.awt.image.WritableRaster.setPixels(WritableRaster.java:550):550
      at sun.awt.image.SunWritableRaster.setPixels(SunWritableRaster.java:359):359
      at java.awt.image.BufferedImage.setData(BufferedImage.java:1495):1495
      at railo.runtime.img.ImageResizer.resize(ImageResizer.java:229):229
      at railo.runtime.img.Image.resize(Image.java:1092):1092
      at railo.runtime.img.Image.resize(Image.java:1012):1012
      at railo.runtime.tag.Image.doActionResize(Image.java:446):446
      at railo.runtime.tag.Image.doStartTag(Image.java:320):320
      at test_cfimage_gif_cfm810$cf.call(/developing/xitesystem/test-cfimage-gif.cfm:2):2
      at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:646):646
      at railo.runtime.listener.ClassicAppListener._onRequest(ClassicAppListener.java:35):35
      at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:24):24
      at railo.runtime.PageContextImpl.execute(PageContextImpl.java:1706):1706
      at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:248):248
      at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:32):32
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:91):91
      at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103):103
      at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:175):175
      at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:240):240
      at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:424):424
      at com.caucho.server.port.TcpConnection.run(TcpConnection.java:481):481
      at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:685):685
      at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:607):607
      at java.lang.Thread.run(Thread.java:637):637
      at railo.runtime.op.Caster.toPageException(Caster.java:2951):2951
      at railo.runtime.tag.Image.doStartTag(Image.java:327):327
      at test_cfimage_gif_cfm810$cf.call(/developing/xitesystem/test-cfimage-gif.cfm:2):2
      at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:646):646
      at railo.runtime.listener.ClassicAppListener._onRequest(ClassicAppListener.java:35):35
      at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:24):24
      at railo.runtime.PageContextImpl.execute(PageContextImpl.java:1706):1706
      at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:248):248
      at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:32):32
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:91):91
      at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103):103
      at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:175):175
      at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:240):240
      at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:424):424
      at com.caucho.server.port.TcpConnection.run(TcpConnection.java:481):481
      at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:685):685
      at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:607):607
      at java.lang.Thread.run(Thread.java:637):637

        Activity

        Hide
        Paul Klinkenberg added a comment -

        example img to resize

        Show
        Paul Klinkenberg added a comment - example img to resize
        Hide
        Michael Offner added a comment -

        tnx for input

        Show
        Michael Offner added a comment - tnx for input

          People

          • Assignee:
            Michael Offner
            Reporter:
            Paul Klinkenberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development