<cfimage />

150 views
Skip to first unread message

Paul Kukiel

unread,
Mar 11, 2009, 11:48:51 AM3/11/09
to ra...@googlegroups.com

I have a small issue I have this code:

 

<cfset picArray = arrayNew(1) />

<cfset arrayAppend(picArray,"1.jpg") />

<cfset arrayAppend(picArray,"2.jpg") />

<cfset arrayAppend(picArray,"3.jpg") />

 

<cfloop array="#picArray#" index="i">

    <cfoutput><img src="#i#"/></cfoutput>

    <cfimage action="read" source="#expandPath('.')#\#i#" name="tempPicture"  />

    <cfimage action="resize" width="30%" height="30%" source="#tempPicture#" name="smallPicture" />

    <cfimage action="writetobrowser" source="#smallPicture#" />

    <br />

</cfloop>

 

Railo and CF produce the exact same sized image but one or the other skews but perhaps one pixel.  I guess if it was Coldfusion it would have been reported by now any ideas or thoughts.  Here is a demo of both:

 

http://code.kukiel.net/blog/cfresize/

 

http://railo.kukiel.net/blog/railoresize/

 

 

Paul.

Chris Pfeffer

unread,
Mar 11, 2009, 12:55:58 PM3/11/09
to ra...@googlegroups.com
This is off topic, but what kind of dog is that? :)

Paul Kukiel

unread,
Mar 11, 2009, 1:10:04 PM3/11/09
to ra...@googlegroups.com
She is very cute I know! Actually when we went to buy her we were told she
was a Jack Rustle which is clearly not the case but from what we know she is
a cross bread with Jack Rustle and Chihuahua.

Paul.

Jan S.-R.

unread,
Mar 12, 2009, 5:10:43 AM3/12/09
to ra...@googlegroups.com
I do a cfdirectory on a zip://resource on Railo 2 - works like a charm
I do the same on Railo 3 and get:
java.lang.IllegalArgumentException at
java.util.zip.ZipInputStream.getUTF8String(Unknown Source):-1 at
java.util.zip.ZipInputStream.readLOC(Unknown Source)

Any ideas? Known Bug? Changed syntax?

Jan

Michael Offner-Streit

unread,
Mar 12, 2009, 6:09:36 AM3/12/09
to ra...@googlegroups.com
Hi Jan

Can you send me a code example for this issue?

tnx Michael

Michael Offner-Streit
Technical Support
Railo Technologies GmbH
michael...@railo.ch
www.railo-technologies.com

Mailing List (english): http://groups.yahoo.com/group/railo_talk/
Mailing List (german): http://de.groups.yahoo.com/group/railo/
Linked in: http://www.linkedin.com/e/gis/71368/0CF7D323BBC1
Issue Tracker: http://jira.jboss.org/jira/browse/RAILO
Blog: http://www.railo-technologies.com/blog



Jan S.-R. schrieb:

Jan S.-R.

unread,
Mar 12, 2009, 6:27:29 AM3/12/09
to ra...@googlegroups.com

>Can you send me a code example for this issue?

Hi Michi,

<cftry>
<cfdirectory directory="zip://e:/galleries/leserreisen/jpgs.zip" name="bla"
action="list">
<cfdump var="#bla#">
<cfcatch type="any">
<cfoutput>#cfcatch.stacktrace#</cfoutput>
</cfcatch>
</cftry>

The folder hierarchy and the zipfile exist, of course

Jan


Michael Offner-Streit

unread,
Mar 12, 2009, 7:00:42 AM3/12/09
to ra...@googlegroups.com
Hi Jan

i have tested this code with multiple zip files, with no problem.
can you please send me your zip file offlist.

but in meantime it comes into my mind that we had a similar problem in past with the same error message.
in this case the problem was that railo can't read a zip file prodcued with the build in zip app from windows xp,
when there are special characters in the file name of the files in the zip.
the problem is that windows use the wrong charset for encoding the filenames, this problem was not railo specific, the problem is that the underlaying java library can not handle this situation.
by the way like other zip apps as well.

but like you say in your case railo 2.0 can handle this zip file, because that this is very intressting for us.

greetings Michael










Michael Offner-Streit
Technical Support
Railo Technologies GmbH
michael...@railo.ch
www.railo-technologies.com

Mailing List (english): http://groups.yahoo.com/group/railo_talk/
Mailing List  (german): http://de.groups.yahoo.com/group/railo/
Linked in: http://www.linkedin.com/e/gis/71368/0CF7D323BBC1
Issue Tracker: http://jira.jboss.org/jira/browse/RAILO
Blog: http://www.railo-technologies.com/blog


Jan S.-R. schrieb:
  
Can you send me a code example for this issue?
    
Reply all
Reply to author
Forward
0 new messages