Skip to content

Commit 945a25c

Browse files
author
Carlos Enrique Pérez Sánchez
committed
Add UI app to add watermarks to images
1 parent 5a86e19 commit 945a25c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2254
-0
lines changed

watermarks/LICENSE.GPLv2

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.

watermarks/README.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<p align="center"><img src=media/appIcon.png></p>
2+
3+
# Watermarker - Tool to print watermarks over images
4+
5+
*Copyright 2019 Carlos Enrique Pérez Sánchez.*
6+
7+
-----------------------------------------------------------------------------------------------------------------------------------
8+
9+
## Features
10+
* Shows 4 images with the watermark in each corner
11+
* Set horizontal and/or vertical padding for the watermark image
12+
* Select one or more images and print them to an output folder
13+
* View a image in full-screen
14+
* Remember configuration
15+
16+
-----------------------------------------------------------------------------------------------------------------------------------
17+
18+
## Usage
19+
The first time you open the application, you will see a window telling you to configure the input folder (where you previously copied the images), the output folder and the watermark image:
20+
21+
![](media/Screenshot_1.png)
22+
23+
You can configure all from the menu bar:
24+
25+
![](media/Screenshot_2.png)
26+
27+
![](media/Screenshot_3.png)
28+
29+
![](media/Screenshot_4.png)
30+
31+
Then configure the position of the watermark image from the sliders, as shown bellow. Then, you can select one or more images and click **NEXT** to continue to the next image (if any).
32+
33+
![](media/Screenshot_5.png)
34+
35+
You can *Press and hold* one of the images to show it in full-screen mode, where you can flick it both horizontally and vertically to observe it in detail.
36+
37+
![](media/Screenshot_6.png)
38+
39+
A progress bar bellow the menu bar indicates the progress (remaining images). Once you finish you will see the following screen (click anywhere to exit that screen and start again).
40+
41+
![](media/Screenshot_7.png)
42+
43+
-----------------------------------------------------------------------------------------------------------------------------------
44+
45+
## Platforms
46+
This program has been tested in **Linux** (*Ubuntu 18.04 LTS*) and **Windows** (*Windows 10 RS5*). The program should behave in MacOS in the same way it works in Linux/Windows, but I haven't tested it due to the lac of a Mac. A MacOS icon must be configured.
47+
This program ***can*** be compiled to mobile platforms, like Android & iOS, but I haven't designed it to fit the requirements of smartphone's screens. An alternative UI must be implemented first.
48+
49+
-----------------------------------------------------------------------------------------------------------------------------------
50+
51+
## Build
52+
This program uses Qt. The minimum required version is [Qt 5.12.0 LTS](https://download.qt.io/archive/qt/5.12/5.12.0/ "Qt Archive"). To build it, just open the `.pro` file in Qt Creator or execute `qmake` in the project directory:
53+
`$ qmake Watermarker.pro`
54+
55+
-----------------------------------------------------------------------------------------------------------------------------------
56+
57+
## License
58+
This program is under the *General Public License* (version 2).
59+
60+
-----------------------------------------------------------------------------------------------------------------------------------
61+
62+
***Contact info:*** [*thecrowporation@gmail.com*](mailto:thecrowporation@gmail.com)

watermarks/Watermarker.pro

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
QT += quick widgets
2+
CONFIG += c++11
3+
4+
# The following define makes your compiler emit warnings if you use
5+
# any Qt feature that has been marked deprecated (the exact warnings
6+
# depend on your compiler). Refer to the documentation for the
7+
# deprecated API to know how to port your code away from it.
8+
DEFINES += QT_DEPRECATED_WARNINGS
9+
10+
# You can also make your code fail to compile if it uses deprecated APIs.
11+
# In order to do so, uncomment the following line.
12+
# You can also select to disable deprecated APIs only up to a certain version of Qt.
13+
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
14+
15+
SOURCES += \
16+
backend/main.cpp \
17+
backend/ImagesManager/imagesmanager.cpp
18+
19+
RESOURCES += \
20+
ui/qml.qrc \
21+
resources/qt.qrc \
22+
resources/images/images.qrc
23+
24+
RC_FILE = resources/resManifest.rc
25+
26+
# Additional import path used to resolve QML modules in Qt Creator's code model
27+
QML_IMPORT_PATH =
28+
29+
# Additional import path used to resolve QML modules just for Qt Quick Designer
30+
QML_DESIGNER_IMPORT_PATH =
31+
32+
# Default rules for deployment.
33+
qnx: target.path = /tmp/$${TARGET}/bin
34+
else: unix:!android: target.path = /opt/$${TARGET}/bin
35+
!isEmpty(target.path): INSTALLS += target
36+
37+
HEADERS += \
38+
backend/ImagesManager/imagesmanager.h

0 commit comments

Comments
 (0)