Image upload & resize

case "image/pjpeg": //IE's weird jpeg MIME type

On 9/19/08 7:05 PM, in article C4F94626.7F2EF%[email protected],<br />"Jefferis Peterson" <[email protected]> wrote:<br /><br />> <br />> Okay, I'm having a problem here. ItemThumb is a text field that stores the<br />> name of the gif or jpg file.<br />> <br />> I have 3 upload file fields  (large, medium, thumb) which are supposed to<br />> store their values (file names??) in the text fields, and I have set  the<br />> ItemThumb to receive its value on insert from the file field.<br />> There seems to be a duplication of field insertion requirements here, so I'm<br />> not sure what to make of the problem, but if I remove the text fields from<br />> the insert transaction, there is no option to store their names in those<br />> fields in the file upload dialog box....<br />> <br />> What is odd is that I'm not getting that error on the medium image text file<br />> even thought it is setup exactly the same as the thumb text...<br />> Jeff <br />> <br />> ~~~~~~~~~~~~<br /><br />After checking the database online, it is adding the information to all the<br />file fields but it is not uploading the images to the directories... Not<br />sure what the reason for the error is...<br />~~~~~~~~~~~~<br />Jefferis Peterson, Pres.<br />Web Design and Marketing<br />http://www.PetersonSales.com

Similar Messages

  • Image upload / resize in "Update Record" form?

    Hi
    I've created a form to add products to a database, it includes an image field using the "upload and resize image" behavior. This works fine.
    But now I'm building the uèpdate form and want to offer users the possibility of either retaining the current file, uploading a new image to the server (and delete/overwrite the previous one if it exists) or delete the current image without uploading a new one.
    how would i go about this?
    thanks.

    Hi Waleed,
    oops, yes, sorry, you´re right of course -- just didn´t read it too carefully :-)
    However, what Somaboy and Dave want, is a little different from what the tutorial explains at this point -- what´s explained there, will of course be deleting that image physically and erasing the file name entry from the table, but that won´t cover the requirement to additionally upload another picture from the same form.
    In this special case I *think* that one would have to perform both deletion processes as "before" triggers -- to make sure that the file as such plus the corresponding table entry are really gone before the upload procedure happens.
    If someone will ever find out a well-working strategy to get this
    (BTW very often asked for) requirement done, many folks here would certainly jump for joy -- also because that´s something you apparently can´t do without implementing a chain of at least custom triggers.
    But there´s also a much easier solution available to those folks who don´t want to bother with implementing custom triggers for this purpose alone :: this is how I´d do it:
    1. use what´s described in step 3 of the tutorial you posted to delete the physical file and the "filename" column entry
    2. pass the current recordset´s ID to the "redirect after update" page, and here...
    3. add a "SELECT file_column FROM table_name WHERE ID" matches the URL parameter ID - query in order to check if this column is empty or not -- and if it´s empty, execute an "upload and resize image" behavior on this page.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Dynamic Image Upload, Resizing Help

    Basically here is what I need to do:
    For a website backstage I need an admin to be able to upload
    a pic of unknown width and height and resize it for 2 standard
    widths, one for thumbnail and one for a larger pic. If there is a
    good open source package out there or a good way to do it I'm open
    to suggestions. Thanks!

    Here are a couple of items that could help.
    ImageCFC
    http://imagecfc.riaforge.org/
    TMT_Img
    http://www.olimpo.ch/tmt/cfc/tmt_img/
    Bryan Ashcraft (remove brain to reply)
    Web Application Developer
    Wright Medical Technology, Inc.
    Macromedia Certified Dreamweaver Developer
    Adobe Community Expert (DW) ::
    http://www.adobe.com/communities/experts/
    "binxsta" <[email protected]> wrote in
    message
    news:esk8ut$994$[email protected]..
    > Basically here is what I need to do:
    > For a website backstage I need an admin to be able to
    upload a pic of
    > unknown
    > width and height and resize it for 2 standard widths,
    one for thumbnail
    > and one
    > for a larger pic. If there is a good open source package
    out there or a
    > good
    > way to do it I'm open to suggestions. Thanks!
    >

  • Image Upload and Resize Trigger Order Question

    Hello All,
    I do enjoy and like using the ADDT, however I do have a problem with the Image Upload and Resize trigger.
    I understand that this trigger is of the AFTER type, and as such, the insert record I have on the page is implemented first and the data is inserted into the table, then images uploaded provided they are smaller than 200 kB in size.
    However, as I have a field that is unique in the database, if the upload fails I am unable to upload any files which are under the size and put that information into the database, as there is already a record with the unique value.
    Is there an easy way to work around this by trying to capture the error before the data is inserted into the database?
    An idea I have is to: check the unique field with the value to be inserted, if fails, change unique value -> nothing inserted yet, no files uploaded.
    If the unique check passes, insert remaining data and trigger the upload and resize image trigger, once that is complete, have an update of the table to update with the unique value.
    I can see the above working, (I think), but I just have to write the code to implement the idea.
    I am not sure how to use the roll-back triggers either, if the Upload Image trigger fails, to remove the inserted record.  But if I can manage the roll-back trigger to remove the record, that is an option to consider for what I want to achieve.
    Thanks to any help people can provide.
    Cheers,
    Ian.

    Thank you for your reply.
    I have a work-around, I have split the forms over two pages, rather than put everything on one page - which introduced another issue, to which I have made a work-around of sorts too.
    The two forms, on different pages, is probably a better idea in terms of better management of data input. The work-around was a Header redirect based on a form variable, as, if I used a Custom Trigger to dynamically generate a new URL, it generated an escaped-encoded URL - to which I have not figured out how to fix.
    So, in the meantime, it works, so I will settle for that at the moment.
    Again, thanks for you reply.
    Ian.

  • How can to resize an image uploaded in to the smart image

    Hi
        I have an image uploaded into the smartimage from the local file system. How can i resize this file or create a rendition for this image?
    Thanks
    Veena

    Hi
       I got a reference for the same question from Stack Overflow http://stackoverflow.com/questions/14726485/resize-an-image-resource-in-cq5/16728970#16728 970
    I tried the same method
    Resource resourceNew = resource.getResourceResolver().getResource(img.getFileReference());
        Asset asset = resourceNew.adaptTo(Asset.class);
        log.error("asset ****" + asset);
        Layer layer = new Layer(asset.getOriginal().getStream());
        layer.resize(200, 200);
        log.error("layer ****" + layer);
                            Image image = new Image(resource);
        String mimeType = image.getMimeType();
        ByteArrayOutputStream bout = null;
        ByteArrayInputStream bin = null;
        try {
            bout = new ByteArrayOutputStream(2048);
            layer.write(mimeType, 1, bout);
            bin = new ByteArrayInputStream(bout.toByteArray());
            asset.addRendition("resizedImage", bin, mimeType);
    log.error("asset Bin" + asset);
        } finally {
            // close streams ...              
    Where img is my Image object and I was able to create a rendition in the dam.
    But the rendition I am getting is in File format. Is there a way by which i can change it to png format??? any Help will be appreciable..
    Thanks
    Veena

  • Multiple Upload Image Problem - Resize GIF files

    The Multiple Image Upload script seems to handle .jpg images without problems.
    However, .gif files return the error:
    "Error converting image (image resize). Image processing library not available or does not support operation. (imagemagick library is not working or not found)."
    The problem is caused by the fact that script that I'm using tries to pass a parameter that is not valid for gif processing:
    myimage.gif' '-quality' '80'
    The "quality" parameter works only for jpeg and .png files as described here:
    http://www.imagemagick.org/script/command-line-options.php#quality
    Please ensure that the script makes difference between .gif and .jpeg files and use the correct parameters so we can resize the images properly.
    Thanks in advance,
    Márcio

    Hi Marcio,
    >>
    Can you tell me the inconveniance of using GD instead of Imagemagick, or its, shortly similar?
    >>
    sorry, but never worked with ImageMagick so far, so I can´t compare
    >>
    The "quality" parameter works only for jpeg and .png files as described here
    >>
    yeah, it seems that this is a small bug in ADDT´s "includes/common/lib/image/KT_Image.class.php" file. Was just checking the code in there, and indeed it adds this extra parameter regardless the image type -- but I do have an idea how this file can be modified to not use this parameter if the file in question has the suffix ".gif".
    If you feel a little adventurous, I´ll happily invite you to modify some code in this file -- please let me know if you´re ready for some instructions. However, if so, please make a backup of this file first...
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Image upload error. Error resizing image: Error converting image (image resize)

    Developer Details:
    Image upload error. Error resizing image: Error converting image (image resize). The "" folder has no write permissions. (IMG_RESIZE)
    User Error:
    Image upload error. Error resizing image.
    tNG Execution Trace - VIEW
    tNG_update.executeTransaction
    STARTER.Trigger_Default_Starter
    tNG_update.doTransaction
    BEFORE.Trigger_Default_saveData
    tNG_update.saveData
    BEFORE.Trigger_Default_FormValidation
    tNG_update.prepareSQL
    tNG_update.executeTransaction - execute sql
    AFTER.Trigger_ImageUpload
    tNG_update.afterUpdateField - frumorsimg, Fimg1.gif*
    tNG_update.getRecordset
    tNG_update.getFakeRsArr
    tNG_update.getLocalRecordset
    tNG_update.getFakeRecordset
    does anybody know why this happens?
    My folders are 777. The image is being uploaded.
    If I turn off the resizing the page loads fine.
    The error appears when having the resizing or when displaying a thumbnail.
    Please help!!!!
    Thank you

    I am not a php guy but just trying to help out..
    1. check what u have configured in the control panel of ADDT for image resize.
    2. i have heard something called GD is used. or image magick.
    3. in asp i use image magic.
    the image resize will use some temporary directory..
    ur webserver will run as some account so ..
    it should have write permission on this temporary directory.
    and the library u specified it to use for resizing should also physically exist.
    and ofcourse the anonymous webuser account should be able to create process to resize this image.

  • Multiple image upload CRASH!!! but works with simple image upload

    I'm getting MAD.
    I'm using php and GD
    While the simple image and re size works like a charm, the multiple image upload or the multiple file upload have a strange behavior.
    It opens the pop-up with flash, then eventually shows me files or thumbnails but when I try to up load I just wait and get the typical "system becoming unstable" flash error.
    As I can see the directory is always generated (I've tried also to put a static directory) but after stargin the upload the flash uploader just crashes and no result.
    Any help would be really appreciated

    Hi Fonzie,
    as the folder is getting created, the issue you´re having is not related to wrong folder permission - it´s something else...
    As I wrote before, che common upload and resize function works perfectly
    this one works perfectly, because it´s just one file to upload and to process, wheras doing that with multiple files might collide with some settings on your server
    So for sure it's not a simple issue as the max filesize
    Are you sure ? Did you check the current "max_upload_filesize" setting ? As long you don´t check it, you can´t know :-)
    As a general rule of thumb, it´s important to be aware of the fact that uploading & resizing images on the server might collide with several PHP settings -- and the more images you upload and resize in one swoop, the closer you´re getting to these limits respectively might even be exceeding them. The following "directives" are those which have an effect on whether your image/file upload & processing will work or not:
    - "max_upload_filesize" :: is sometimes set to just 8 MB on a shared hosting, sometimes 16 MB, sometimes more. This setting will affect the file upload procedure only
    - "set_time_limit" (e.g. 30 seconds) :: if the execution time of a script exceeds this limit for whatever reason, the server simply shuts it down without letting you (respectively the flash uploader) know it´s been shut down. This *might* be the reason why ADDT´s flash uploader hangs respectively returns that error message after some time, because it´s waiting for some response from the server which never comes.
    - "memory_limit" (e.g. 8 MB) :: this directive is a sort of "allocated server RAM" for your account, and it´s in particular the image resizing process which will grab more or less memory resources -- the higher the the resizing factor is, the more RAM is spent, and the more images are getting resized in one swoop, the worser it gets.
    However, all these PHP directives can be changed, and your host might even be so courteous to increase the currently defined values of those abovementioned directives for you -- and that´s what I´m suggesting at this point.
    Cheers
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Thumbnail creation during Image Upload

    In my application, I am able to upload documents to content server using KPRO API's.  Image upload works fine and I can display the same file in webdynpro image UI element. Now while uploading the image, i also need to create a thumbnail image and store it. I can use these thumbnail images for image navigation instead of actual file due to performance issues.
    How to create thumbnail images from jpeg image file?
    Edited by: ashwinsrinivas on Jul 20, 2010 8:41 PM

    I'm trying to put the results of my tinkering into a blog - which should hopefully get published in the next few days.
    But just to update you here first
    Yes it can be done! - here's the proof:
    [Large image about to be resize to a thumbnail|https://weblogs.sdn.sap.com/weblogs/images/251723740/large_double_rainbow.jpg]
    [Image after resizing|https://weblogs.sdn.sap.com/weblogs/images/251723740/resized_rainbow.jpg]
    Thought I'd go with some double rainbows to be topical (plus I can't get the darn song out of my head!)
    I created a new method in Thomas' class: TRANSFORM_RESIZE with 2 input parameters of type i, new_width and new_height.
    Then most of the code is pretty similar to the rotation code that Thomas had already written...
    data l_data type xstring.
      data l_new_data type xstring.
      data l_row type xstring.
      data l_new_row type xstring.
      data l_num_pixels type i.
      data l_counter type i.
      data l_counter2 type i.
      data l_len type i.
      data l_pad type i.
      data l_mod type i.
      data l_width type i.
      data l_bytes_per_pixel type i.
      data: l_y_factor type f,
            l_x_factor type f.
      data l_new_pad type i.
      data l_null(1) type x.
    * get the data from the image representation
      l_data = gx_content+data_offset.
      l_bytes_per_pixel = bpp / 8.
      l_width = width * l_bytes_per_pixel.
      l_y_factor = height / new_height.
      l_x_factor = width / new_width.
      l_mod = l_width mod 4.
      l_pad = 4 - l_mod.
      if l_pad = 4.
        l_pad = 0.
      endif.
      l_len = xstrlen( l_data ).
      data lt_rows type standard table of xstring.
      data: l_row_index type i.
      field-symbols <wa_row> like line of lt_rows.
      do new_height times.
        l_row_index = floor( ( sy-index - 1 ) * l_y_factor ).
        l_counter = l_row_index * ( l_width + l_pad ).
        append initial line to lt_rows assigning <wa_row>.
        <wa_row> = l_data+l_counter(l_width).
      enddo.
      l_mod = ( new_width * l_bytes_per_pixel ) mod 4.
      l_new_pad = 4 - l_mod.
      if l_new_pad = 4.
        l_new_pad = 0.
      endif.
      loop at lt_rows assigning <wa_row>.
        clear l_new_row.
        do new_width times.
          l_counter2 =  l_bytes_per_pixel * floor( ( sy-index - 1 ) * l_x_factor ).
          concatenate l_new_row <wa_row>+l_counter2(l_bytes_per_pixel)  into l_new_row in byte mode.
        enddo.
        if l_new_pad > 0.
          do l_new_pad times.
            concatenate  l_new_row l_null into l_new_row in byte mode.
          enddo.
        endif.
        concatenate  l_new_data l_new_row into l_new_data in byte mode.
      endloop.
      data x_new_image type xstring.
      concatenate gx_content(data_offset) l_new_data into x_new_image in byte mode.
      data x_header type xstring.
      x_header = gx_content+0(data_offset).
      data x_size(4) type x.
      data i_size type i.
      i_size = xstrlen( x_new_image ).
      write4 i_size x_size.
      concatenate x_header+0(2) x_size x_header+6 into x_header in byte mode.
      data x_data_size(4) type x.
      data i_data_size type i.
      i_data_size = xstrlen( l_new_data ).
      write4 i_data_size x_data_size.
      concatenate x_header+0(34) x_data_size x_header+38 into x_header in byte mode.
      data x_width(4) type x.
      data x_height(4) type x.
      data i_width type i.
      data i_height type i.
      i_width = new_width.
      i_height = new_height.
      write4 i_width x_width.
      write4 i_height x_height.
      concatenate x_header+0(18) x_width x_height x_header+26 into x_header in byte mode.
      data x_hres(4) type x.
      data x_vres(4) type x.
      x_hres = x_header+38(4).
      x_vres = x_header+42(4).
      concatenate x_header+0(38) x_vres x_hres x_header+46 into x_header in byte mode.
      concatenate x_header  l_new_data into x_new_image in byte mode.
      gx_content = x_new_image.
      me->read_bitmap_header( ).

  • Restrict image pixel size in multiple image upload

    Re: Multiple Image Upload behaviour.
    One of the only issues I have with this extension is if users try to upload an image within the limits I set (of 250Kb) but with a high pixel count.
    For example, a jpg of 800 x 600 at 200Kb causes no problem, but a one of 2000 pixels at 150Kb probably will.
    I understand that there is probably more server load to resize a large pixel image, so is there a way to check the pixel size of images to be uploaded as well as the file size and reject it if it is too large?

    But what you could do, is retrieving the php.ini´s "post_max_size" value and display a note to your site visitors:
    <br />
    <br />
    <b>1.</b> put this into the doc´s head:
    <br />
    <br /><?php<br />$replace_max_size_MB = str_replace("M"," MB",ini_get('post_max_size'));<br />?>
    <br />
    <br />
    <b>2.</b> the related message:
    <br />
    <br />Pics larger than <?php echo $replace_max_size_MB; ?> will be rejected by the server
    <br />
    <br />Cheers,
    <br />Günter Schenk
    <br />Adobe Community Expert, Dreamweaver

  • Something is wrong with Firefox's image auto resize

    In forums, when I post an image, it's seems to be doing an incorrect image auto resize, for the image is still large to be fit in the websites' pages, and when I CTRL+Scroll, the browser makes a proper resize though making the letters and numbers smaller.

    Resizing images automatically only works if you open an image in a tab and there is only that image to be shown. In all other cases it is the website that determines how large an image is displayed.<br />
    If you post an image on a forum and the forum doesn't resize the image automatically then use an upload host that automatically generates a thumbnail that you can show and that opens the full sized image if you click the thumbnail.

  • ADDT multi image upload leads to Fake Record error???

    Rather than using a Wizard to create a multi image upload (which wasn't
    work!), I created an insert record page, and then created an "upload &
    resize image" file action on each of three fields:
    Thumb
    ItemImage
    LargeImage
    I designated these fields as file fields in the Insert Record setup, even
    though they are text fields because that allows a browse button to be added.
    I then added the Upload and Resize action on each of those fields and there
    is a place to store the image name in the fields for Thumb, Large, etc.
    It appears to be correct, but I got this error when trying to load the page:
    Error:
    Internal error.
    Developer Details:
    tNG_fields.getFakeRecordset:
    SQL error: Error creating temporary table:
    Table 'KT_fakeRS_20080918' already exists <<<<<<<<<<<<!!!!
    SQL:
    CREATE TEMPORARY TABLE KT_fakeRS_20080918 (LargeImage TEXT, ItemName TEXT,
    ItemShortDesc TEXT, ItemLongDesc TEXT, ItemCatID TEXT, LHJ_Number TEXT,
    ItemType TEXT, BrandName TEXT, ItemQuantity TEXT, Price TEXT, ItemThumb
    TEXT, ItemImage TEXT, catID TEXT) (FIELDS_FAKE_RS_ERROR)
    tNG Execution Trace - VIEW
    tNG_insert.executeTransaction
    STARTER.Trigger_Default_Starter
    tNG_insert.getRecordset
    tNG_insert.getLocalRecordset
    tNG_insert.getFakeRecordset*
    Why does this table exist? Is there some duplication in the ADDT code when
    adding Upload actions to an existing Insert Record set?
    Jeff
    Jeff
    ~~~~~~~~~~~~
    Jefferis Peterson, Pres.
    Web Design and Marketing
    http://www.PetersonSales.com

    On 9/19/08 7:05 PM, in article C4F94626.7F2EF%[email protected],<br />"Jefferis Peterson" <[email protected]> wrote:<br /><br />> <br />> Okay, I'm having a problem here. ItemThumb is a text field that stores the<br />> name of the gif or jpg file.<br />> <br />> I have 3 upload file fields  (large, medium, thumb) which are supposed to<br />> store their values (file names??) in the text fields, and I have set  the<br />> ItemThumb to receive its value on insert from the file field.<br />> There seems to be a duplication of field insertion requirements here, so I'm<br />> not sure what to make of the problem, but if I remove the text fields from<br />> the insert transaction, there is no option to store their names in those<br />> fields in the file upload dialog box....<br />> <br />> What is odd is that I'm not getting that error on the medium image text file<br />> even thought it is setup exactly the same as the thumb text...<br />> Jeff <br />> <br />> ~~~~~~~~~~~~<br /><br />After checking the database online, it is adding the information to all the<br />file fields but it is not uploading the images to the directories... Not<br />sure what the reason for the error is...<br />~~~~~~~~~~~~<br />Jefferis Peterson, Pres.<br />Web Design and Marketing<br />http://www.PetersonSales.com

  • Multiple File & Image uploads with Developers Toolbox

    I am considering purchasing the Developers Toolbox if it will
    save me some time. The online information isn't very detailed and I
    am curious if it has the capabilities of handling multiple image
    uploads. For instance I'm building a news page where a news article
    will contain more than one image. Is this beyond the scope of the
    Developers Toolbox or am I better just hand coding?

    multiple image upload
    (with optional resizing) and file upload features are
    available in ADDT when using the PHP_MySQL server model -- without
    hand coding.

  • Upload, resize, store as blog in SQL2000

    This is a long shot, but does anyone know how to upload an
    image, have
    the server resize it, then store the image in a database as a
    blog data
    type? Using ASP.
    I am building a certification system for products that get
    load tested.
    The photo shows the load cell under test conditions. This is
    all done in
    house, and the test results are stored in a database. When
    the
    certificate is required it is created using ASPPDF.
    The next phase is to then make the certificates available to
    the
    customers, so the database will be replicated to a website
    where the
    customers will login and create the certificate. I don't want
    to have to
    try to keep an image folder synchronized, it will be easier
    to just
    store the images in the database. There will not be a huge
    number of
    images stored, and the typical image will be no bigger than
    400 pixels
    wide.
    At the moment I am playing with the Dundas upload component
    and the
    office developer web components to resize the image. I
    started my
    research and tests about 6 months ago and can't find the site
    I found
    that showed me how to do the resize.
    Does anyone have any experience with this kinda thing? Any
    advice as to
    how you did it would be great.
    Cheers,
    Steve

    darrel wrote:
    >> This is a long shot, but does anyone know how to
    upload an image, have the
    >> server resize it, then store the image in a database
    as a blog data type?
    >> Using ASP.
    >
    > Quite easy with ASP.net, actually.
    >
    > With ASP, you'll likely want to purchase a component
    such as ASPupload.
    I seem to have cracked it this morning, and its working well.
    I am using Dundas Upload 2 for the image uploading, I can't
    actually
    find the download for this anymore, but I do have the install
    file from
    when I first installed it.
    I also have Web Assists Digial File Pro, which will do
    uploading, but it
    doesn't do the blog insert, which is vital.
    I have also got the Office Web Components side of it working,
    something
    I couldn't do when I first tried...I made some obvious typos
    http://www.microsoft.com/downloads/details.aspx?FamilyId=7287252C-402E-4F72-97A5-E0FD290D4 B76&displaylang=en)
    Here is the code in case anyone is interested:
    <%
    Function ResizeImage(FileName, OutFormat, Width, Height)
    Dim Chs, chConstants
    Set Chs = CreateObject("OWC11.ChartSpace")
    Set chConstants = Chs.Constants
    Chs.Interior.SetTextured FileName,
    chConstants.chStretchPlot, ,
    chConstants.chAllFaces
    Chs.border.color = -3
    ResizeImage = Chs.GetPicture(OutFormat, Width, Height)
    End Function
    %>
    <%
    On Error Resume Next
    Set objUpload = Server.CreateObject("Dundas.Upload.2")
    objUpload.UseUniqueNames = 0
    objUpload.Save "c:\Inetpub\temp"
    Set rs = Server.CreateObject("ADODB.Recordset")
    rs.Open "TestImageUpload", MM_rigging_STRING, 2, 3
    For Each objFile In objUpload.Files
    If InStr(1,objFile.ContentType,"image") <> 0 Then
    blobName = "C:\Inetpub\temp\" & objFile.OriginalPath
    blobFormat = "jpg"
    blobWidth = clng(300)
    blobHeight = clng(200)
    rs.AddNew
    rs("tiu_image").Value = ResizeImage(blobName, blobFormat,
    blobWidth,
    blobHeight)
    rs("tiu_filename").Value = objFile.OriginalPath
    CreateObject("Scripting.FileSystemObject").DeleteFile
    BlobName
    End If
    Next
    rs.Update
    rs.Close
    Set rs = Nothing
    Set objUpload = Nothing
    %>
    Now I just need to integrate this with my application and I
    am sorted, I
    can't foresee any problems at the moment.
    Steve

  • Image upload question

    Hi all,
    I've got an image upload section for an admin page.  I've tried countless tutorials, but I just can't seem to get anything to work the way I want it to.  I'm trying to resize the uploaded image to a specific size (w=215; h=250) and maintain the transparency of the png file.  All I can get to work is a simple upload that does not resize.  So far I've got this:
    $current_image=$_FILES['image']['name'];
    $extension = substr(strrchr($current_image, '.'), 1);
    if ($extension != "png")
    die('Unknown extension');
    $new_image = $current_image;
    $destination="../../assets/subfolder/".$country."/".$new_image;
    $action = copy($_FILES['image']['tmp_name'], $destination);
    if (!$action)
    die('File copy failed');
    }else{
    Can anyone please help me get this to resize and keep the transparency?  Or point me in the right direction where I can find a tutorial that I can get to work?
    Thank you very much.,

    My book, PHP Solutions, 2nd Edition, devotes an entire chapter to generating and uploading thumbnail images. It's not free, but it might help you if you're stuck.

Maybe you are looking for

  • GOT A HP OFFICEJET PRO 8500A PLUS; I MUST RE-ENTER WIRELESS SETTINGS EVRYTIME I USE IT??

    I just got an OfficeJet Pro 8500a Plus, on the touchscreen i have to set-up (username and password) the wireless connection to my wireless SSID; and that confirms the connection ok. At that point i can print no problem, scan and fax. The problem aris

  • Documents permission

    Hi, All my Pages and Numbers documents on iCloud.com have suddenly become impossible to open. On iCloud.com (from IE10 or Google Chrome 40/Win 8) their file names appear scrambled (encrypted?) and if I try to open them I get this error message: "You

  • Element 3D Transformation

    Hi people! First of all I wanna thank you for accepting me in this group and secondly I need some help with a transformation in Element 3D. I want to know how to transform an Element 3D object into a text ( for example: transform an Element 3d Iphone

  • Suche ein Alternative App zum Galaxy Tab Note 10.1

    Suche ein guten App der mit der Galaxy Tab, Note 10.1 vergleichbar ist. Wer kann helfen?

  • Please provide a valid link to download SAPWidgetFoundation.jar/zip

    Hi,      I am willing to develop some widgets to display R/3 information for End Users.      I have already downloaded the following tools:-      1. eclipse-jee-europa-winter-win32.zip      2. SAPWidgetDevelopmentTools - zip file.zip      Please let