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

imagecroppator: Resize velkeho obrazku pro jednodussi vyber cropu #55

Open
ghost opened this issue Nov 21, 2012 · 0 comments
Open

imagecroppator: Resize velkeho obrazku pro jednodussi vyber cropu #55

ghost opened this issue Nov 21, 2012 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 21, 2012

Ahoj,

potrebovali bychom aby se dala v cropatoru nastavit maximalni sirka obrazku zobrazovaneho pri cropovani aniz by se obrazek fyzicky zmensil (takove odzoomovani:)).

Problem je s velkymi obrazky. Chceme zachovat jejich rozliseni, kvuli kvalite vyrezu. Kdyz, ale musime nastavovat cropovaci okno na obrazku, ktery ma treba 5000x5000px jde to obtizne (clovek musi odzoomovat v prohlizeci nebo to ruzne tahat a neni to pohodlne).

Hodilo by se nam tedy mit moznost zadat nejakym parametrem max sirku obrazku pro zobrazeni v cropatoru, skutecny obrazek ale zustane porad stejne velky. Na croppatoru bude spravne prepocitani velikost vyrezu, a odeslani souradnic, ktere odpovidaji skutecnemu vyrezu.

Jak to ma fungovat:

  • nahraju velikej obrazek co ma 1000x1000 pixelu
  • vyrez ma byt 100x100
  • ale ja ten obrazek ukazu zmensenej na 500x500 protoze se to lip vejde do browseru
  • tim padem musim adekvatne zmensit i to vybiratko
  • na 50x50 protoze oblast, kterou s nim vyberu popisuje 100x100 pixelu v puvodnim obrazku
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

0 participants