Bildescriptet croppe til dimensjon

Bug #436251 reported by Thomas Misund
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
studentersamfundet.no
Fix Released
Medium
Paal Braathen

Bug Description

Bildescriptet vårt (imageResize.php) kan i dag resize bilder etter maksbredde eller makshøyde. Hvis begge parameterne er gitt resizer scriptet etter den hardeste restriksjonen.

Bygg ut scriptet til å kunne spytte ut bilder som er resizet til den letteste restriksjonen, og croppet til å også passe til den høyeste.

Eksempel: Scriptet får beskjed om å spytte ut et bilde på 600x400 px. Originalbildet er 800x1200 px. Scriptet vil da først resize til 600x900px, og deretter croppe vekk de øverste 250px og de nederste 250px.

Tags: task

Related branches

Thomas Misund (misund)
Changed in studentersamfundet-web:
milestone: none → studentersamfundet.no1.1
importance: Undecided → Medium
Revision history for this message
oyvinbak (olivaq) wrote :
Changed in studentersamfundet-web:
assignee: nobody → oyvinbak (olivaq)
status: New → Fix Released
Jon Ramvi (ramvi)
Changed in studentersamfundet-web:
assignee: oyvinbak (olivaq) → Thomas Misund (misund)
Revision history for this message
Thomas Misund (misund) wrote :

Cropping funker hvis bildet er for høyt, men ikke hvis bildet er for bredt.

Changed in studentersamfundet-web:
status: Fix Released → In Progress
assignee: Thomas Misund (misund) → EDB-gjengen (studentersamfundet-web)
status: In Progress → Incomplete
assignee: EDB-gjengen (studentersamfundet-web) → oyvinbak (olivaq)
Paal Braathen (paalbra)
Changed in studentersamfundet-web:
assignee: oyvinbak (olivaq) → Paal Braathen (paalbra)
Paal Braathen (paalbra)
Changed in studentersamfundet-web:
status: Incomplete → Fix Released
Revision history for this message
Thomas Misund (misund) wrote :

Godt jobba, Paal. Jeg commita koden.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.