0

Here is my problem.

I have field BigPicture in a my Product Content Type.

Is there a way that When I upload an image from BigPicture Field that the current picture automatically resize in more than one image profile.

Here is the desire Image Resize Workflow:

1- Upload the image

2- Automatically Resize and Crop the image in more than one size property (Thumb :120px X 120px, Big : 250px X 250px, ExtraBig 1024px X 760px)

3- The Final File Name for each image should be like MyImageName_Thumb.jpg, MyImageName_Big.jpg, MyImageName_ExtraBig.jpg

I'am using Drupal 7

Thanks a lot

  • Drupal prepares image according to styles on display, not on upload. Why don't you like that? And why do you want to change names? Division into subdirectories is not enough? – Mołot Jul 9 '14 at 14:29
1

Image styles in Imagecache Actions should handle this for you. But as said above, it will do it on display, not on upload. It will scale/crop however you like (there are extra sub modules for this), and the styles will be sorted into folders by image style, but not rename them. But it will put them in folders like Thumb/MyImageName, Big/MyImageName, etc.

Imagecache actions does have a custom option, I'm not sure if it would let you rename the file:

Custom Actions - Execute your own PHP/GD code in the middle of an imagecache generation process. Requires some familiarity with imageAPI internals.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.