summaryrefslogtreecommitdiff
path: root/viewer
diff options
context:
space:
mode:
authorJens Finke <jens@triq.net>2003-12-08 18:09:30 +0000
committerJens Finke <jens@src.gnome.org>2003-12-08 18:09:30 +0000
commit936c0034075dd59f6f0dc8f5b0f85972c1e63c08 (patch)
tree44bd7e4f4b78d17b9288e509e3f98bf61c534f58 /viewer
parentbe524a21e3a5d8a644f448f1d715b1b30fb5ea4a (diff)
downloadeog-936c0034075dd59f6f0dc8f5b0f85972c1e63c08.tar.gz
Lossless saving for local/unmodified files and local/modified jpeg images.
2003-12-08 Jens Finke <jens@triq.net> Lossless saving for local/unmodified files and local/modified jpeg images. Needs more testing. * Makefile.am: * acconfig.h: Added jpegutils compile magic. * configure.in: Bumped version to 2.5.1. Define ENABLE_JPEG. * viewer/Makefile.am, * collection/Makefile.am: Link to libeog-jpegutils conditionally. * libeog/Makefile.am: Include jpegutils dir. * libeog/eog-image-jpeg.[ch]: Build only if HAVE_JPEG is true. (eog_image_jpeg_save_lossless): New function. * libeog/eog-image-private.h: New file_type attribute. * libeog/eog-image.c (real_image_load): Store file format used for loading of the image. (is_local_uri), (get_save_file_type_by_suffix): New functions. (eog_image_save): Reworked function. Tries to be as smart as possible in using the least lossy save method. * libeog/eog-transform.[ch] (eog_transform_get_transform_type): New function. * jpegutils/*: New files, borrowed from GThumb.
Diffstat (limited to 'viewer')
-rw-r--r--viewer/Makefile.am9
1 files changed, 8 insertions, 1 deletions
diff --git a/viewer/Makefile.am b/viewer/Makefile.am
index e666b076..bdf4a6c2 100644
--- a/viewer/Makefile.am
+++ b/viewer/Makefile.am
@@ -1,3 +1,8 @@
+if ENABLE_JPEG
+jpeg_LIB = -L$(top_builddir)/jpegutils -leog-jpegutils
+jpeg_DEPS = $(top_builddir)/jpegutils/libeog-jpegutils.a
+endif
+
INCLUDES = \
-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
-DG_LOG_DOMAIN=\"Eog\" \
@@ -21,11 +26,13 @@ eog_image_viewer_SOURCES = \
eog_image_viewer_DEPENDENCIES = \
$(top_builddir)/libeog/libeog.a \
- $(top_builddir)/libgpi/libgpi.a
+ $(top_builddir)/libgpi/libgpi.a \
+ $(jpeg_DEPS)
eog_image_viewer_LDADD = \
-L$(top_builddir)/libeog -leog \
-L$(top_builddir)/libgpi -lgpi \
+ $(jpeg_LIB) \
$(EOG_LIBS) \
$(X_LIBS) \
$(LIBJPEG)