I have a view that fetches content that is then shown in a block. It shows 16 nodes and each node has title, date and image. The images are set to use the imagecache preset in the view field settings.

I need to show the first and the seventh image with different sizes, 750x400 instead of 300x300.

Is it possible to achieve this changing the view settings or on template level?

  • Why not just use different views for the 1st and 7th?
    – pcambra
    Jun 29, 2014 at 21:23
  • But then I would need to use 4 different views, right? One for the first, second for 2-6, third for 7 and fourth views for rest? Not sure how could I achieve this with separate views.
    – user33604
    Jun 29, 2014 at 21:33
  • If you build your page with panels, you can reuse your views and pass arguments so you've got two kind of views and invoke them several times. Another option is to do all this in the theming layer and invoke the imagecache settings programatically
    – pcambra
    Jun 29, 2014 at 22:16
  • Use Group multiple values option - for details drupal.stackexchange.com/questions/102019/… and for your case create separate field for 1st and 7th field, set image style and for 2 to 6 create another field with default image style.
    – Bala
    Jun 30, 2014 at 8:37

1 Answer 1


I used IMCE under Drupal 6.x. However, the resize only occurs at the time you upload and image with their editor which is cumbersome, to say the least. It depends on who has to upload the images, I guess.

Otherwise, CSS, as others mentioned, is probably your best bet. Now a day, browsers properly (cleanly) resize images so they still look good. (10 years ago, however, it was horrible!)

If you want to use IMCE and need to resize existing images, you could look into using convert on your server to resize existing files. However, you'll have to write an intelligent script that properly renames everything properly...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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