Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

[Feature] Add frame option for collage #63

Merged
merged 2 commits into from
Jun 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,4 @@ Donators who donated 5€ or more get early access to new features/options i am
- [poldixd](https://github.com/poldixd)
- [TheVaan](https://github.com/TheVaan)
- [Andreas Remdt](https://andreasremdt.com)
- [philippselle](philippselle)
2 changes: 1 addition & 1 deletion api/applyEffects.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
$collageSrcImagePaths[] = $collageBasename . '-' . $i . '.jpg';
}

if (!createCollage($collageSrcImagePaths, $filename_tmp, $config['take_frame'], $frame_path)) {
if (!createCollage($collageSrcImagePaths, $filename_tmp, $config['take_collage_frame'], $config['take_collage_frame_path'])) {
die(json_encode([
'error' => 'Could not create collage'
]));
Expand Down
2 changes: 2 additions & 0 deletions config/config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
$config['polaroid_rotation'] = '0';
$config['take_frame'] = false;
$config['take_frame_path'] = '../resources/img/frames/frame.png';
$config['take_collage_frame'] = false;
$config['take_collage_frame_path'] = '../resources/img/frames/frame.png';
$config['chroma_keying'] = true;
$config['use_collage'] = false;
$config['continuous_collage'] = false;
Expand Down
11 changes: 11 additions & 0 deletions lib/configsetup.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,17 @@
'name' => 'use_collage',
'value' => $config['use_collage']
],
'take_collage_frame' => [
'type' => 'checkbox',
'name' => 'take_collage_frame',
'value' => $config['take_collage_frame']
],
'take_collage_frame_path' => [
'type' => 'input',
'placeholder' => $defaultConfig['take_collage_frame_path'],
'name' => 'take_collage_frame_path',
'value' => $config['take_collage_frame_path']
],
'collage_cntdwn_time' => [
'type' => 'range',
'name' => 'collage_cntdwn_time',
Expand Down
4 changes: 4 additions & 0 deletions resources/lang/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"general_polaroid_rotation": "Polaroid Bild-Rotation",
"general_start_screen_subtitle": "Startbildschirm (Untertitel)",
"general_start_screen_title": "Startbildschirm (Titel)",
"general_take_collage_frame_path": "Rahmen",
"general_take_frame_path": "Rahmen",
"general_time_to_live": "Bildanzeige nach Aufnahme:",
"general_videoHeight": "Gerätekamera Bildhöhe",
Expand Down Expand Up @@ -136,6 +137,7 @@
"manual_general_polaroid_rotation": "Legen Sie den Grad fest, um den ein Bild mit Polaroid-Effekt gedreht wird.",
"manual_general_start_screen_subtitle": "Geben Sie den auf der Startseite sichtbaren Untertitel ein.",
"manual_general_start_screen_title": "Geben Sie den auf der Startseite sichtbaren Titel ein.",
"manual_general_take_collage_frame_path": "Geben Sie den Pfad des Rahmens ein, der nach der Aufnahme auf Ihre Collage angewendet wird.",
"manual_general_take_frame_path": "Geben Sie den Pfad des Rahmens ein, der nach der Aufnahme auf Ihr Bild angewendet wird.",
"manual_general_time_to_live": "Definieren Sie die Zeit in Millisekunden, die Ihr Bild nach der Aufnahme auf dem Ergebnisbildschirm sichtbar ist.",
"manual_general_videoHeight": "Geben Sie einen Wert ein, der als Höhe für die Vorschau der Gerätekamera verwendet wird.",
Expand Down Expand Up @@ -198,6 +200,7 @@
"manual_show_gallery": "Wenn diese Option aktiviert ist, kann der Benutzer vom Startbildschirm aus auf die Galerie zugreifen.",
"manual_slideshow_pictureTime": "Geben Sie in Millisekunden an, wie lange ein Bild während der Diashow angezeigt wird.",
"manual_slideshow_refreshTime": "Die Diashow wird nach eingegebenen Sekunden neu geladen.",
"manual_take_collage_frame": "Wenn diese Option aktiviert ist, wird nach der Aufnahme ein definierter Rahmen auf Ihre Collage angewendet.",
"manual_take_frame": "Wenn diese Option aktiviert ist, wird nach der Aufnahme ein definierter Rahmen auf Ihr Bild angewendet.",
"manual_toggle_fs_button": "Wenn diese Option aktiviert ist, wird dem Startbildschirm eine Schaltfläche zum Umschalten des Vollbildmodus hinzugefügt.",
"manual_use_collage": "Wenn diese Option aktiviert ist, kann der Benutzer eine Collage aufnehmen. Eine Collage besteht aus 4 Bildern. Optional können Sie eine Collage mit oder ohne Unterbrechung aufnehmen.",
Expand Down Expand Up @@ -272,6 +275,7 @@
"symbol": "Symbol auswählen",
"takeCollage": "Collage erstellen!",
"takePhoto": "Foto erstellen!",
"take_collage_frame": "Foto-Collage mit Rahmen aufnehmen",
"take_frame": "Bild mit Rahmen aufnehmen",
"test_update_available": "Es ist ein Test-Update verfügbar.",
"toggleFullscreen": "Vollbildmodus umschalten",
Expand Down
4 changes: 4 additions & 0 deletions resources/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"general_polaroid_rotation": "Polaroid picture rotation",
"general_start_screen_subtitle": "Start screen (subtitle)",
"general_start_screen_title": "Start screen (title)",
"general_take_collage_frame_path": "Frame",
"general_take_frame_path": "Frame",
"general_time_to_live": "Show image after capture:",
"general_videoHeight": "Device cam picture height",
Expand Down Expand Up @@ -138,6 +139,7 @@
"manual_general_polaroid_rotation": "Enter a value which is used as degrees a picture gets rotated with polaroid effect.",
"manual_general_start_screen_subtitle": "Enter the subtitle visible on startpage.",
"manual_general_start_screen_title": "Enter the title visible on startpage",
"manual_general_take_collage_frame_path": "Enter the path of the frame which is applied to your collage after taking it.",
"manual_general_take_frame_path": "Enter the path of the frame which is applied to your picture after taking it.",
"manual_general_time_to_live": "Enter a value used as milliseconds. This value defines the time your picture is visible on the result screen after taking a picture.",
"manual_general_videoHeight": "Enter a value which is used as height for preview by device cam.",
Expand Down Expand Up @@ -200,6 +202,7 @@
"manual_show_gallery": "If enabled, user can access the gallery from start screen.",
"manual_slideshow_pictureTime": "Add a value which is used as milliseconds an image is displayed at slideshow.",
"manual_slideshow_refreshTime": "Refresh slideshow page afert entered seconds.",
"manual_take_collage_frame": "If enabled, defined frame will be applied to your collage after taking it.",
"manual_take_frame": "If enabled, defined frame will be applied to your picture after taking it.",
"manual_toggle_fs_button": "If enabled, a button to toggle fullscreenmode will be added to the start screen.",
"manual_use_collage": "If enabled, user can take a collage. A collage consists of 4 pictures. Optional you can take a collage with or without interruption.",
Expand Down Expand Up @@ -276,6 +279,7 @@
"symbol": "Choose a symbol",
"takeCollage": "Take Collage!",
"takePhoto": "Take Pic!",
"take_collage_frame": "Take collage with frame",
"take_frame": "Take picture with frame",
"test_update_available": "There is a test update available.",
"toggleFullscreen": "Toggle Fullscreen",
Expand Down