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

Make it possible to move pictures within their frame #10

Open
ziggystar opened this issue Mar 18, 2015 · 10 comments
Open

Make it possible to move pictures within their frame #10

ziggystar opened this issue Mar 18, 2015 · 10 comments

Comments

@ziggystar
Copy link

The program crops images to make them fit their "window" within the collage. I want to be able to move the picture within this window. This lets me fix things like cut-off heads.

Maybe it is possible to allow zooming, too.

@adrienverge
Copy link
Owner

It does not seem easy to me to implement this. If you want to contribute, feel free! :-)

@Blackskyliner
Copy link

Any chance that one of either Merge Request will be used/merged to get this feature someday in the near future? As for portait collages it would be pretty helpful to be able to move the attraction of the photo-part to the portraited face(s).

@adrienverge
Copy link
Owner

@Blackskyliner thanks for the reminder! Let's follow this up in #46

adrienverge pushed a commit that referenced this issue Jul 24, 2017
…frame.

The Photo object has been updated with two extra properties: offset_w and offset_h which represent respectively the offset on the width and the offset on the height of a photo within their frame.
The offset value must be a number between 0 and 1:
  - 0: means the photo is not cut on the left (top) but is fully cut on the right (bottom)
  - 1: means the photo is not cut on the right (bottom) but is fully cut on the left
  - 0.5: is the default value and means the photo is centered
  - any other value betwen 0 and 1 will move the photo within the frame
  A public move method has been added to move the photo within the cell.

  ImagePreviewArea.SWAPPING has been renamed as SWAPPING_OR_MOVING because when clicking, moving the mouse and realising will trigger two different actions:
    - SWAPPING: if the release of the button is done on another cell
    - MOVING: if the release of the button is done on the same cell
 The method ImagePreviewArea.button_release_event() has been accordingly modified.

 The method RenderingTask.resize_photo() has been modified to take the offset in account.
ojob pushed a commit to ojob/PhotoCollage that referenced this issue Nov 11, 2017
)

Signed-off-by: Joël Bourgault <joel.bourgault@gmail.com>
@ojob
Copy link

ojob commented Nov 11, 2017

Seems to me this issue could be closed, however the README was not in line with this very cool feature (I missed it!). See pull request #54.

ojob pushed a commit to ojob/PhotoCollage that referenced this issue Nov 12, 2017
ojob pushed a commit to ojob/PhotoCollage that referenced this issue Nov 12, 2017
@azzamsa
Copy link

azzamsa commented Jan 20, 2018

Thanks, I was wondering how to move photo inside a frame.
Trying ctrl button does not work. but I just accidentally drag the pic with mouse and it works with installation via pip, because in debian it still 1.4.3-2.

this is the feature that I really need, thank you so much :)

@LAfricain
Copy link

Which release is with this feature? I'm using Ubuntu 18.04 and I couldn't find. Even with the disco version It doesn't work.
I was very happy to found this little application that can be use as replacement of photoscape.

@FZill
Copy link

FZill commented Jul 2, 2021

If I run photocollage normally this functionality does not work on my machine (Linux Mint 20.1 Cinnamon, python 3.8.10) but to my surprise, while trying to find out why, if I run it from vscode's terminal with "python3 -c 'from photocollage import gtkgui; gtkgui.main()'" (as mentioned in the "hacking" section) it just works. I can move the pictures within their frames as intended. Does anyone have an idea why? PS this is a nice piece of software, thank you for this.

@ojob
Copy link

ojob commented Jul 3, 2021

@FZill The answer may well be that you have two different versions installed: the packaged one by your distribution (most probably 1.4.4, the latest release) and the cloning of current working state of this repository. There have been some updates in-between.

@FZill
Copy link

FZill commented Jul 5, 2021

Ah you are absolutely right. I uninstalled the packaged version and installed the current working state and now everything is fine, thanks.

@langfingaz
Copy link

langfingaz commented Jan 28, 2024

Summary:

  • Latest version supports moving images within their frames 🎉
  • The description of this issue also mentions zooming images within their frames.

I suggest that we close this issue as completed and create a separate one to track "zooming images within frames". (Or we could change the issue title to include "zooming").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants