aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/.cvsignore5
-rw-r--r--tools/Makefile.am12
-rw-r--r--tools/e_img_import.c22
3 files changed, 39 insertions, 0 deletions
diff --git a/tools/.cvsignore b/tools/.cvsignore
new file mode 100644
index 000000000..03206ec26
--- /dev/null
+++ b/tools/.cvsignore
@@ -0,0 +1,5 @@
+e_ipc_client
+Makefile.in
+Makefile
+.libs
+.deps
diff --git a/tools/Makefile.am b/tools/Makefile.am
new file mode 100644
index 000000000..81500fa33
--- /dev/null
+++ b/tools/Makefile.am
@@ -0,0 +1,12 @@
+## Process this file with automake to produce Makefile.in
+
+INCLUDES = \
+ -I$(top_srcdir)/intl \
+ @evas_cflags@ @edb_cflags@ @ebits_cflags@ @ecore_cflags@ @efsd_cflags@ @ferite_cflags@
+
+bin_PROGRAMS = e_img_import
+
+e_img_import_SOURCES = \
+e_img_import.c
+
+e_img_import_LDADD = @evas_libs@ @edb_libs@ @ebits_libs@ @ecore_libs@ @ferite_libs@ -lm -lc $(INTLLIBS)
diff --git a/tools/e_img_import.c b/tools/e_img_import.c
new file mode 100644
index 000000000..ba5a1898e
--- /dev/null
+++ b/tools/e_img_import.c
@@ -0,0 +1,22 @@
+#include <X11/Xlib.h>
+#include <Imlib2.h>
+
+int main(int argc, char **argv)
+{
+ Imlib_Image im;
+
+ if (argc == 1)
+ {
+ printf("usage:\n\t%s source_image.png dest.db:/key/in/db\n", argv[0]);
+ exit(-1);
+ }
+ im = imlib_load_image(argv[1]);
+ if (im)
+ {
+ imlib_context_set_image(im);
+ imlib_image_attach_data_value("compression", NULL, 9, NULL);
+ imlib_image_set_format("db");
+ imlib_save_image(argv[2]);
+ }
+ return 0;
+}