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

Commit

Permalink
Add frame option for collage
Browse files Browse the repository at this point in the history
Change-Id: Ic1d62579ba49998fc48c4b46cf108d535eb43e19
  • Loading branch information
philippselle authored and andi34 committed Jun 4, 2020
1 parent c4ac022 commit ce0729e
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 1 deletion.
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
2 changes: 2 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 @@ -272,6 +273,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
2 changes: 2 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 @@ -276,6 +277,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

0 comments on commit ce0729e

Please sign in to comment.