Results 1 to 7 of 7

Hybrid View

  1. #1

    Default FTP images don't resize proportionally, Admin uploaded pics do

    I am having a problem with my images on my server. The proportional images weren't working properly on all images but it was on others. I finally tracked this down to images that were uploaded via FTP and others that were uploaded through the Admin.

    I thought this was perhaps a permissions issue, but when I chmod the files to even 777 it doesn't remedy the problem. Anyone have any ideas on how to get around this?

    I can't upload all the images individually because there are somewhere upwards of 35,000 images and anywhere around 2000 new ones every quarter. If there is no workaround, I will just have to deal with the hard coding.
    Of course I went mad with power. Have you ever tried going mad without power? It's boring. No one listens to you.

  2. #2
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: FTP images don't resize proportionally, Admin uploaded pics do

    In order to use the automatic image proportioning within Zen Cart, you must have your images listed within the database.

    Two ways to do that:

    1. manually upload every image using the appropriate part of the Admin section.
    2. use the Easy Populate module to enter Product information & related images. It is available from the Downloads section of the Forum.

    With Easy Populate you will still have to FTP your images but... Easy Populate uses a Spreadsheet to allow easy input of database information. Store Owners with large numbers of Products and/or Images save a lot of time using Easy Populate.

  3. #3

    Default Re: FTP images don't resize proportionally, Admin uploaded pics do

    I used EP to populate the DB... Obviously something is wrong though. I will look into it there. I didn't know the images needed to be stored in the DB to work proportionally.

    Thanks.
    Of course I went mad with power. Have you ever tried going mad without power? It's boring. No one listens to you.

  4. #4

    Default Re: FTP images don't resize proportionally, Admin uploaded pics do

    Do the images just appear in the products table or also somewhere else? All my products have images in the products table. I didn't see any other obvious place they would be.

    EDIT: I should mention also that the images where proportional sizing works correctly are able to be resized with the arguments in the zen_image function in html_output. The FTP'd images cannot be resized using the arguments. They are sized based on the width and height in the admin settings. This is how I originally discovered the issue.
    Last edited by monkeytown; 16 Dec 2008 at 11:01 PM. Reason: More Info
    Of course I went mad with power. Have you ever tried going mad without power? It's boring. No one listens to you.

  5. #5
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: FTP images don't resize proportionally, Admin uploaded pics do

    To clarify, the actual images themselves are not stored in the database, only the path(s). This does allow Zen Cart to use Server software though, to re-size the images same as if you'd uploaded them manually.

    When first starting with EP I always recommend to start small, use 4 or 5 Products & Images. Many people get confused about the path to use for their images and starting small plus using the Error log your Hosting Control Panel should/does provide, one can sort out their errors and get things working.

  6. #6

    Default Re: FTP images don't resize proportionally, Admin uploaded pics do

    Yeah, I guess I am confused by what you are saying. The image paths, yes, are stored in the DB, and all the images are online in the correct spot. It sounds like you are suggesting that perhaps the images are in the wrong folder or something and not showing up (or I am reading your post wrong).

    The only problem is that any images that were uploaded via FTP ignore both the proportional resizing and they also cannot be resized manually with the zen_image function. They just work off of the hardcoded width and height in the admin, so if I put 100w and 0h and turn on calculate size and proportional resize it displays the image at 100w and 0h. Similarly if I am using the zen_image function, setting the width and height there is ignored as well. If I use zen_image_OLD then those width and height are used. Seems very odd to me.

    I have written scripts to resize images (in other applications, not zen) and it is pretty straight forward so I am not sure why I am needing to upload the images through the admin to get it to work. It isn't like it is reading the size of the image at upload and storing the width/height in the DB to be used later (or is it?). It shouldn't matter as long as it can find/read the image which it can.

    Is it perhaps a file ownership issue? This concept is fuzzy to me but I think if it is uploaded through PHP the owner is nobody but if I upload through FTP is it owned by the user that logs in to upload files and so they can't be read properly to resize? I'm reaching for solutions here but that is about the only thing that I can think of why FTP would ruin this function for me. I don't understand it enough to know if that even makes sense.

    Of course I went mad with power. Have you ever tried going mad without power? It's boring. No one listens to you.

 

 

Similar Threads

  1. v151 subfolder (in images folder) on ftp don't show, but are there.
    By J3003 in forum General Questions
    Replies: 5
    Last Post: 5 Sep 2015, 04:06 AM
  2. Replies: 1
    Last Post: 31 Oct 2014, 11:48 PM
  3. Why don't my uploaded templates show in the admin?
    By kohly in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Mar 2012, 08:55 PM
  4. v139h Automatic Resize of Uploaded Images?
    By jjj0923 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 23 Feb 2012, 10:32 PM
  5. resize left column, but header images don't
    By mediathing in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Oct 2007, 10:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg