For a certain nodetype within my drupal6 project I need an image in 3 different sizes (preview, mainview and thumbs). What I would like imagecache to do for me is to create these 3 different sizes from just one upload. Is that possible?
thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
yes it is possible.
Imagecache creates the images when they are displayed. So in other words, in the imagecache ui you create your three sizes (preview, main view, and thumbs).
Then wherever you are going to display the image, say using image from filefield in cck, you select the desired size from the drop down.
If your content type is “page” then go to admin/content/node-type/page/display and select your display for both teaser and node.
In a view, you add the field which holds your image (filefield-image) and then choose which size to display.