Skip to content

Commit fc89063

Browse files
committed
added todo to script
1 parent bcc5f10 commit fc89063

7 files changed

+6
-165
lines changed

scripts/create_srcsets.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
#!/usr/bin/env python
2+
13
# script for creating srcset image copies for upload to CDN
4+
# TODO: turn this into an AWS Lambda that is triggered when an image is uploaded to S3.
5+
# There will be two locations in S3 (two buckets or directories in S3). One for upload of original images; another for the generated srcset images.
6+
27
import os
38
from PIL import Image
49
import shutil

scripts/filenames-list.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ src: "0497-036.1234.2400x1600.jpg", alt: "A photo" },

scripts/step00_create_srcsets.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

scripts/step01_add_dimensions_to_original_image_names.py

Lines changed: 0 additions & 53 deletions
This file was deleted.

scripts/step02_create_resized_image_copies_for_srcset.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

scripts/step03_copy_orig_image_rename_for_srcset.py

Lines changed: 0 additions & 30 deletions
This file was deleted.

scripts/step04_cleanup.py

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)