0

What is the best protocol for uploading images in batch via FTP?

Let's say my website has 3 images.

Original size is 1000x1000

I upload all images via backend as "image upload".

Later on, I want to substitute all 1000x1000 images with identical images with same name but at size 400x400.

Curious as to what is the best workflow for Drupal for this scenario.

3
  • You have multiple questions here (how to upload batch images, whether to upload images in separate folders); on Drupal Answers, you need to stick to one question per post. Also, why would you upload lower resolution versions later? Upload the highest resolution needed at the beginning, and let Drupal's image styles handle any required downsizing. Commented Oct 10, 2017 at 6:20
  • Patrick, let's say I upload an image that's 5000 pixels wide and weights 10 megs, and I choose my image style size as 400 pixels (reducing image size to 100kb), will the browser render the 10 meg version or the 100kb one? I've always wondered about that... Commented Oct 10, 2017 at 6:32
  • The browser will render whatever you configure in Drupal-- you can choose to show whatever image style (including "original") you like. You can mix and match styles using views, display suite, panels, or many other modules. Commented Oct 10, 2017 at 7:00

1 Answer 1

1

I want to substitute all 1000x1000 images with identical images with same name but at size 400x400.

Since they are identical, simply use image styles. Create an image style of 400x400 and assign it to your content type's image field OR in your image field settings in a View.

Watch: How to apply image styles in Drupal

2
  • Yes, but with image styles, the size of the file remains the same on the server right? I'm looking at 5 gigs of images for this particular case... Commented Oct 10, 2017 at 6:41
  • 1
    @BrunoVincent in that case, find them in the /sites/all/default/files folder. Have the 400 x 400 be the same name and override them via SFTP upload.
    – No Sssweat
    Commented Oct 10, 2017 at 6:46

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.