Image upload size

Questions and answers about ShopSite Custom Templates

Image upload size

Postby nwyrktodd » Thu Mar 22, 2012 10:59 am

Hey I uploaded multiple images to /media/products/. I chose to upload a 3 x 4 thumbnail for the main page. Then I figured I would use larger images for the more info pages. I get this error:
Publishing File:[HTML5_twoColFixRtHdr.css]

Generating Page [4:Collections]...
Adding Product [Black Cotton Jersey Drop crotch Pants.]... Content-type: text/html
Error

Cannot open file [/home/content/t/h/a/thanlon/html/von/store/media/Products/ss_size1/black-breastplate-thumb.jpg] for writing.:
/home/content/t/h/a/thanlon/html/von/store/media/Products/ss_size1/black-breastplate-thumb.jpg
When I look in that directory there is no file there.
What Am I doing wrong?
What are the best ways to upload images for products?
What size images should I use for front and more info pages?
DO I need to make multiple sizes or just one size that they resize?
nwyrktodd
 
Posts: 24
Joined: Wed Mar 21, 2012 12:45 pm

Re: Image upload size

Postby Jim » Thu Mar 22, 2012 11:37 am

You should upload the largest size image that you intend to use on your store pages. ShopSite can resize the images down but not make an image larger.
To configure the image sizes you go to Images > Configure and set the various sizes that you want to display. How big to set them is a matter of personal choice but typically you would want the Medium size image no bigger than 350x350, the Small image 150x150 or so and the thumbnail less than 100.

Once you have the resized image sizes configured you should select all your images and click the Create Resized Images button. (note you must select the images in each directory separately, there is no way to do all directories in a single action)

Once that is done the publish should be able to find the appropriate image size. If you are still getting a "Cannot open file for writing" error the permissions are not correct for your images or directories. The directories the images are in need to be writeable for the webserver user the store is running as. If you used FTP to upload the images then you will probably need to change the owner and/or permissions on the files so the webserver user has proper access permissions.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Image upload size

Postby nwyrktodd » Thu Mar 22, 2012 11:46 am

thanks jim
nwyrktodd
 
Posts: 24
Joined: Wed Mar 21, 2012 12:45 pm


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 17 guests