EasyCFM.COM ColdFusion Forums / Coding Help! / The image CFX_jpegresize problem

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: The image CFX_jpegresize problem

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts last

03-18-2006 @ 1:25 AM
Send P.M.
My Gravatar!
Powered by Gravatar
Junior Member
Posts: 68
Joined: Oct 2005

I am using CFX_jpegresize but the Problem is It resizes the image and uploadds to the Image folder with the Specified height and width Dimensions, But on the page I am Presenting the code to diaplay the Modifie image but I gives me error like this :

There was an error reading the file. null   The error occurred on line 48.

No all is ok but i dont know where the Problem is I also Show the Code here I am Using..

<cfif isdefined ("form.image1")>
      <form action="imager.cfm" method="post" enctype="multipart/form-data">
    <table width="450" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#FF9900">
      <tr bgcolor="#ff6600">
        <td>Upload Your Image Please: (Only Jpeg)*</td>
        <td align="center"> </td>
        <td align="center">
          <input name="Imagees" type="file" id="Imagees">
          <input type="submit" value="Upload the image"> </td>
  <div align="center">Image Will Be Resized According to this Size, and will be displayed on
  Home page @ regular Intervals.
  <table width="132" border="0" align="center">
       <td width="163" align="center">
       <img src="starting_logos/my_animation.gif" align="middle" alt="My Animation Picture" width="126" height="130"></td>
  <p align="center">Your Images will be Stored in Our Server and Will Shown on Main page Frequenly, Enjoy The Show.</p>
<cfset serverdirec = "#Application.file_path#/Uploads">
<cfif isdefined("form.Imagees")>
<cffile action="upload" filefield="Imagees" destination="#serverdirec#"
nameconflict="overwrite" accept="image/jpeg,image/jpg,image/pjpeg">
<cfset ucfile = "Uploads/#file.serverfile#">
  <table width="450" border="0" align="center" cellpadding="6" cellspacing="0">
    <tr valign="top">
      <td align="center">
       <CFX_Jpegresize action = "resize" source = "#serverdirec#" filename = "#file.ServerFile#"
        quality = "100" width = "126" height = "130">
                 <img src="Uploads/#file.ServerFile#">

Hope will Build

Website Designed and Developed by Pablo Varando.