Browse Source

rename scraped images

fix-broken-scrape
Jørgen Lien Sellæg 6 years ago
parent
commit
b5d40134cf
  1. 2
      scrape.js

2
scrape.js

@ -116,7 +116,7 @@ const save_images = async ({ image = null, event_id }) => {
return []; return [];
} }
const original_path = `./events/img/${event_id}.jpg`; const original_path = `./events/img/${event_id}.jpg`;
const resized_path = `./events/img/square-${event_id}.jpg`; const resized_path = `./events/img/${event_id}-square.jpg`;
const original = write_image(original_path, image); const original = write_image(original_path, image);
const resized_square = write_resized(resized_path, image); const resized_square = write_resized(resized_path, image);
try { try {

Loading…
Cancel
Save