Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request collection #68

Closed
20 of 21 tasks
andi34 opened this issue Sep 9, 2019 · 70 comments
Closed
20 of 21 tasks

Feature request collection #68

andi34 opened this issue Sep 9, 2019 · 70 comments

Comments

@andi34
Copy link
Collaborator

andi34 commented Sep 9, 2019

Please use this "issue" for feature requests. Starting post will be updated with your suggestions.

Feature added

Ready for review

Work in progress (WIP)

Help wanted

Declined

@thymon13
Copy link
Contributor

thymon13 commented Sep 9, 2019

Button on gallery

The buttons on the photos from the gallery are too small and especially unsightly.

11

Would it be possible to enlarge them?
It would be best to have them in the middle of the picture.
CSS buttons that appear and disappears when click on the photo. ?

like this for exemple :
GitHub Logo

@thymon13
Copy link
Contributor

thymon13 commented Sep 9, 2019

QR Code Pop'up not resized

I use a 9.6" touche pad. And the QR code is truncated.
I'have try with "false" ou "true" in my config for enable or not the mobile view.
No change.

12

@andi34
Copy link
Collaborator Author

andi34 commented Sep 9, 2019

QR Code Pop'up not resized

I use a 9.6" touche pad. And the QR code is truncated.
I'have try with "false" ou "true" in my config for enable or not the mobile view.
No change.

@thymon13 belongs here #22

Bouton on gallery

The buttons on the photos from the gallery are too small and especially unsightly.

Would it be possible to enlarge them?
It would be best to have them in the middle of the picture.
CSS buttons that appear and disappears when click on the photo. ?

(...)

This is also a design thing and not a feature itself.

@thymon13
Copy link
Contributor

thymon13 commented Sep 9, 2019

Chroma Keying

I tested this function. Thats work perfectly.
But is it possible to use one picture background by default ? Instead of choose them in gallery -> select photo -> select function --> select background...

Example : Corporation event with Enterprise Logo in background by default...

@andi34
Copy link
Collaborator Author

andi34 commented Sep 9, 2019

Chroma Keying

I tested this function. Thats work perfectly.
But is it possible to use one picture background by default ? Instead of choose them in gallery -> select photo -> select function --> select background...

Example : Corporation event with Enterprise Logo in background by default...

You can adjust the source for your needs https://github.com/andreknieriem/photobooth/blob/master/chroma_keying/index.php#L51

@thymon13
Copy link
Contributor

thymon13 commented Sep 9, 2019

This is also a design thing and not a feature itself.

@andi34 really ? 😭 😭
So I open a design issue ? 😆😆

@thymon13
Copy link
Contributor

thymon13 commented Sep 9, 2019

I found anothers errors for french translation...

@thymon13
Copy link
Contributor

thymon13 commented Sep 9, 2019

you can adjust the source for your needs
#68 (comment)

I think my question is not clear. When you take a picture the result is with the green background. and you have to go to the gallery to choose the background you want to incorporate. While it would be nice to have the result directly when the picture is taken.

@andi34
Copy link
Collaborator Author

andi34 commented Sep 9, 2019

That's nothing I am going to make an option. You can take a look at the chroma_keying source and modify the takePic.php for it, or use the new frame function (can also be added to takePic.php to apply the frame directly).

@andi34
Copy link
Collaborator Author

andi34 commented Sep 9, 2019

This is also a design thing and not a feature itself.

@andi34 really ?
So I open a design issue ?

Could also be part of the responsive design.
I am not able to implement every feature request myself (I've a full time job as a medical assistant and still learning js, php etc). Everyone is welcome to adjust the source for his/her needs and send a Pullrequest with useful changes (sure, I can make it clean commits in the end as I have a lot of experience with git).

I am going to write a quick "how to submit code changes" soon.

@andi34
Copy link
Collaborator Author

andi34 commented Sep 9, 2019

I found anothers errors for french translation...

Fork latest source, update the language file on your git fork and send me a link for it. Maybe there's more to be adjusted?

@thymon13
Copy link
Contributor

thymon13 commented Sep 9, 2019

Ok thank you Andi34 for your answer.

Fork latest source, update the language file on your git fork and send me a link for it. Maybe there's more to be adjusted?

yes exactly more corrections

@andi34
Copy link
Collaborator Author

andi34 commented Sep 9, 2019

@thymon13 maybe useful for you until ready:

git fetch https://github.com/andi34/photobooth private
git cherry-pick d317f58d95752ac585c8e2545ef24957ceb11a4c
git cherry-pick 9dab3dfae43342952ba5f6db85c5123aa3869c0b
git cherry-pick 250172ae175e6f815375335dcce566b840ad7bb2

@thymon13
Copy link
Contributor

thymon13 commented Sep 9, 2019

news private fetch for what ?

and how you commit ?

git cherry-pick d317f58d95752ac585c8e2545ef24957ceb11a4c
error: Your local changes to the following files would be overwritten by merge:
	resources/css/style.css
	resources/js/core.js
	resources/sass/style.scss
Please commit your changes or stash them before you merge.
Aborting
fatal: cherry-pick failed

git add --all && git commit -a ???

@andi34
Copy link
Collaborator Author

andi34 commented Sep 9, 2019

This would create a commit with your made changes, yes. After that you can cherry-pick

@thymon13
Copy link
Contributor

thymon13 commented Sep 9, 2019

@andi34
I'm really sorry but I do not understand anything

git cherry-pick d317f58d95752ac585c8e2545ef24957ceb11a4c
error: your local changes would be overwritten by cherry-pick.
hint: commit your changes or stash them to proceed.
fatal: cherry-pick failed

@andi34
Copy link
Collaborator Author

andi34 commented Sep 10, 2019

git cherry-pick --abort
git add --all
git commit -a -m "My local changes"
git format-patch -1

After that it should work. You'll only have conflicts at cherry-pick if you've modified the source at the same places already.
With git format-patch we create a patch file from your changes so you can apply them easy again in future. Keep the patch file at a safe place.

@thymon13
Copy link
Contributor

@andi34 ok it's done

@andi34
Copy link
Collaborator Author

andi34 commented Sep 10, 2019

Maybe the adjustments for smaller device helps you a little bit

@thymon13
Copy link
Contributor

Well no... 😢

look : https://youtu.be/J8yeS-4Nu7s

@andi34
Copy link
Collaborator Author

andi34 commented Sep 11, 2019

What's your resolution?
You could try to adjust the @media (max-width: 800px) inside the style.css

@thymon13
Copy link
Contributor

1280x800px
I will test it, thx

@andi34
Copy link
Collaborator Author

andi34 commented Sep 16, 2019

@msmedien gerade erst gerallt das du auch eine Implementierung hast 🤗
Diese Teste ich natürlich auch, finde die Idee gut auf externe Scripts zu verzichten wie es bei dir der Fall ist.

@andi34
Copy link
Collaborator Author

andi34 commented Sep 16, 2019

@msmedien I've pushed your changes here for now. I'll make it one clean commit and do some adjustments within this week. https://github.com/andi34/photobooth/commits/dev

@andi34
Copy link
Collaborator Author

andi34 commented Sep 16, 2019

Ready for review

To test this changes:
Make sure your local clone does ignore filemode changes:

cd /var/www/html
git config core.fileMode false
sudo git config core.fileMode false

Now add my Github copy as remote and fetch the source:

git remote add andi34 https://github.com/andi34/photobooth
git fetch andi34

Make sure you have no local changes which will be lost, if you have you need to commit them. Best ist to keep them in a seperate branch you can go back to later:

git add --all
git commit -a -m "All my local changes"
git checkout -b myBackupBranch

Now switch to my source:

git checkout andi34/dev

Happy testing!

In case you need to switch back to your local source you only need to checkout to your backup branch which we've created before.

git checkout myBackupBranch

Questions? Let me know!

Please leave some feedback if the print confirmation works for you as expected. Quickly tested and seems to be fine.
Translation wrong/need adjustment? Let me know too before i merge the changes here!

@andi34
Copy link
Collaborator Author

andi34 commented Sep 16, 2019

would it be possible to use PiCamera for Preview and Photo ?

looking at apache error logs it seems that when using the PiCamera for Preview it cannot be accessed in the command line to take Photo and therefore and error happens.

Would it be possible to stop the Preview just before the Photo function to take the photo is called?

Could you try to move this parts up a little bit?

if(useVideo){
var track = public.stream.getTracks()[0];
track.stop();
$('video').hide();
}

So it looks like:

    // take Picture
    public.takePic = function (photoStyle) {
        processing = true;
        if (isdev) {
            console.log('Take Picture:' + photoStyle);
        }
        if(useVideo){
            var track = public.stream.getTracks()[0];
            track.stop();
            $('video').hide();
        }
        setTimeout(function () {
	    if ((photoStyle=='photo')){
                $('#counter').text('');
                $('.spinner').show();
                $('.loading').text(L10N.busy);
            } else {

@thymon13
Copy link
Contributor

thymon13 commented Sep 17, 2019

@andi34
Nice Tutorial ! Need to add this en (FAQ)

I tested "Print Confirmation" Soooooo great ! Works perfectly

@andi34
Copy link
Collaborator Author

andi34 commented Sep 18, 2019

Feature added

Merged 😃
ab2ebf3
58fb383

Thanks everyone 👍

@andi34
Copy link
Collaborator Author

andi34 commented Sep 18, 2019

Ready for review

Might need adjustment to also use $filename_orig = $filename_tmp;

If you have trouble to not have the effect applied:
Inside takePic.php change from

if($_POST['style'] === 'photo') {
	$filename_orig = $filename_photo;
	$use_filter = false;
} else {
	$filename_orig = $filename_tmp;
	$use_filter = false;
}
if(!empty($_POST) && !($_POST['filter'] === 'imgPlain')) {
	$filename_orig = $filename_tmp;
	$use_filter = true;
	$imgfilter = $_POST['filter'];
}

to

if(($_POST['style'] === 'photo') && !($config['polaroid_effect'])){
	$filename_orig = $filename_photo;
	$use_filter = false;
} else {
	$filename_orig = $filename_tmp;
	$use_filter = false;
}

if(!empty($_POST) && !($_POST['filter'] === 'imgPlain')) {
	$filename_orig = $filename_tmp;
	$use_filter = true;
	$imgfilter = $_POST['filter'];
}

Examples:
20190918_194459

20190918_200955

@andi34
Copy link
Collaborator Author

andi34 commented Sep 18, 2019

Btw. You can follow the steps mentioned here again to test this new feature:
#68 (comment)

If you've already added my fork as remote you only need to run

cd /var/www/html
git fetch andi34
git checkout andi34/dev

@vdubuk
Copy link
Contributor

vdubuk commented Sep 19, 2019

Could you try to move this parts up a little bit?

if(useVideo){
var track = public.stream.getTracks()[0];
track.stop();
$('video').hide();
}

So it looks like:

    // take Picture
    public.takePic = function (photoStyle) {
        processing = true;
        if (isdev) {
            console.log('Take Picture:' + photoStyle);
        }
        if(useVideo){
            var track = public.stream.getTracks()[0];
            track.stop();
            $('video').hide();
        }
        setTimeout(function () {
	    if ((photoStyle=='photo')){
                $('#counter').text('');
                $('.spinner').show();
                $('.loading').text(L10N.busy);
            } else {

This solution worked for me, thank you @andi34

@andi34
Copy link
Collaborator Author

andi34 commented Sep 19, 2019

Thanks for the feedback @vdubuk .
@andreknieriem it's fine to submit the code change or it's a wanted behavior to stop the preview at the point it is?

Edit:
Change:andi34@e37c7ec

@andreknieriem
Copy link
Owner

Can be changed ;)

@vdubuk
Copy link
Contributor

vdubuk commented Sep 19, 2019

Kiosk Mode feature request

When running app in Kiosk mode it can be difficult to get to the Admin/settings page.

therefore I would like to suggest of having a hidden shortcut to get to settings - to prevent accidental / unauthorised access you need to double click the bottom right location 4 times. This can be changed in adminshortcut.js if (admincount == 3) {

index.php around line 274 after the print mesg div

        
	<!-- added div --> 

	<div id="adminsettings" >
		<div style="position:absolute; bottom:0; right:0;"><img src="/resources/img/spacer.png" 
        alt="adminsettings" ondblclick="adminsettings()"></div>
	</div>  
 
	<script type="text/javascript" src="/resources/js/adminshortcut.js"></script> 

	<!-- end -->

	
     
```
create new file aresources/js/adminshortcut.js 

```
var admincount = 0;
		function countreset() {
			admincount = 0;
		}
		function adminsettings() {
			if (admincount == 3) {
				window.location.href="admin/index.php";
			}
			console.log(admincount);
			admincount++;
			setTimeout(countreset, 10000);
		}

```

add spacer.png to resources/img/ 

![spacer](https://user-images.githubusercontent.com/4080228/65237830-51646780-dad3-11e9-8adb-0293086f88fb.png)




andi34 added a commit that referenced this issue Sep 19, 2019
This allows to use Pi Camera for preview and for taking pictures.

Fixes the following Issue:
#68 (comment)
#68 (comment)
andi34 pushed a commit to andi34/photobooth that referenced this issue Sep 19, 2019
When running app in Kiosk mode it can be difficult to get
to the Admin/settings page.

Issue/Feature request:
andreknieriem#68 (comment)
@andi34
Copy link
Collaborator Author

andi34 commented Sep 19, 2019

Kiosk Mode feature request

When running app in Kiosk mode it can be difficult to get to the Admin/settings page.

therefore I would like to suggest of having a hidden shortcut to get to settings
....

works fine on my end. ready for testing in my dev branch.

@andi34
Copy link
Collaborator Author

andi34 commented Sep 19, 2019

Doubleclick in the right bottom corner until the admin page appears (for me it takes 4 double clicks in chrome)

Screenshot_2019-09-19_19-28-11

andi34 pushed a commit that referenced this issue Sep 19, 2019
When running app in Kiosk mode it can be difficult to get
to the Admin/settings page.

Issue/Feature request:
#68 (comment)
@andi34
Copy link
Collaborator Author

andi34 commented Sep 20, 2019

andi34@6b926f8

Jemand eine Idee?

@andi34
Copy link
Collaborator Author

andi34 commented Sep 20, 2019

Found the issue. config.json is ignored... Config.inc.php/my.config.inc.php is used only.
Need to find out how to solve it.
Maybe someone can help?

@andi34
Copy link
Collaborator Author

andi34 commented Sep 20, 2019

Found a solution. Moved the php files out of the chroma_keying folder:
f607a41

@sualko
Copy link
Collaborator

sualko commented Oct 6, 2019

What is the purpose of this issue? Github provides already a nice overview 😉 : enhancement

@andi34
Copy link
Collaborator Author

andi34 commented Oct 6, 2019

Purpose was to have one thread/issue for feature request instead having 100 "issues"

@sualko
Copy link
Collaborator

sualko commented Oct 6, 2019

The advantage of having 100 issues is, that you can reference them inside of issues, pull requests and commits. You have a clear history of an issue, can subscribe to the further development and you can discuss details. But both ways are applicable.

@msmedien
Copy link

msmedien commented Oct 8, 2019

Da das Green-Screen-Feature jetzt läuft, frage ich mich jedoch ob es nicht einen benutzerfreundlicheren Weg gibt dieses zu bedienen...

  1. Auf der Startseite den "Foto erstellen"-Button drücken
  2. Countdown + Foto wird erstellt
  3. Foto wird angezeigt inkl. der Auswahl der verschiedenen Hintergründen (ähnlich wie über die Gallerie-Funktion nur ohne "Drucken"- und "Schließen"-Button)
  4. Hintergrund wählen und speichern (oder ein "Weiter"-Button)
  5. Anzeige des fertigen Fotos inkl. der "normalen" Buttons (wie z.B. Gallerie, QR-Code, Neues Fotos etc. pp - So wie es jetzt auch ist nachdem das normale Foto geschossen wurde)

Natürlich nur wenn das Green-Screen-Feature aktiviert ist, ansonsten sollte über den Button ein ganz normales Foto gemacht werden. - Ggf. auch mit einem extra Button, wie bei der Collagen-Funktion.

@andi34
Copy link
Collaborator Author

andi34 commented Oct 11, 2019

Closing this thread as new feature request issues get opened instead posting requests here.
Use own issues which can be closed via Pullrequest if a feature is added.

@andi34 andi34 closed this as completed Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants