Add TODOs

pull/3/head
Toni Melisma 4 years ago
parent aaa7c9a39a
commit 273900d74e

@ -25,10 +25,11 @@ Image and video format support will depend on the support compiled in these libr
## Backlog
Before 0.1 Alpha release, still to do:
- Convert thumbnail and full-size pictures
- Add triangle overlay on video thumbnails to indicate video
- HTML templates
- CSS
- Rudimentary lightbox JS
- Add triangle overlay on video thumbnails to indicate video
- Clean up half-finished thumbnail/fullsize/symlink if program is halted midway
- Use all of thumb/full/symlink in detecting changes required

@ -428,6 +428,8 @@ func resizeThumbnailVideo(source string, destination string) {
ffmpegCommand.Stdout = os.Stdout
ffmpegCommand.Stderr = os.Stderr
// TODO overlay triangle to thumbnail to implicate it's video instead of image
err := ffmpegCommand.Run()
if err != nil {
fmt.Fprintf(os.Stderr, "Could create thumbnail of video %s", source)
@ -452,6 +454,8 @@ func resizeThumbnailImage(source string, destination string) {
newImage, err := bimg.NewImage(buffer).Thumbnail(200)
checkError(err)
// TODO actually convert the image
newImage2, err := bimg.NewImage(newImage).AutoRotate()
bimg.Write(destination, newImage2)
@ -464,6 +468,8 @@ func resizeFullsizeImage(source string, destination string) {
bufferImageSize, err := bimg.Size(buffer)
ratio := bufferImageSize.Width / bufferImageSize.Height
// TODO actually convert the image
newImage, err := bimg.NewImage(buffer).Resize(ratio*1080, 1080)
checkError(err)

Loading…
Cancel
Save