diff options
Diffstat (limited to 'image/jpeg.c')
-rw-r--r-- | image/jpeg.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/image/jpeg.c b/image/jpeg.c index af28fe6fa..6e5e446dd 100644 --- a/image/jpeg.c +++ b/image/jpeg.c @@ -286,4 +286,17 @@ void nsjpeg_destroy(struct content *c) bitmap_destroy(c->bitmap); } + +bool nsjpeg_clone(const struct content *old, struct content *new_content) +{ + /* Simply replay conversion */ + if (old->status == CONTENT_STATUS_READY || + old->status == CONTENT_STATUS_DONE) { + if (nsjpeg_convert(new_content) == false) + return false; + } + + return true; +} + #endif /* WITH_JPEG */ |