|
|
|
@ -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 { |
|
|
|
|