Use image response in style controller and allow resize #126

Closed
opened 2018-06-23 07:03:40 +00:00 by jamie · 5 comments
jamie commented 2018-06-23 07:03:40 +00:00 (Migrated from git.hazaar.io)

Images being returned by the Hazaar\Controller\Style class are not handled as image responses specifically and are instead of just returned using a Hazaar\Controller\Response\Style class. This is fine because all controller responses that extend the Hazaar\Controller\Response\File class will automatically detect the MIME type.

I would like to use the Hazaar\Controller\Response\Image class instead though so that I can make use of it's image manipulation functions, such as resizing, altering the quality or filters.

Images being returned by the Hazaar\Controller\Style class are not handled as image responses specifically and are instead of just returned using a Hazaar\Controller\Response\Style class. This is fine because all controller responses that extend the Hazaar\Controller\Response\File class will automatically detect the MIME type. I would like to use the Hazaar\Controller\Response\Image class instead though so that I can make use of it's image manipulation functions, such as resizing, altering the quality or filters.
jamie commented 2018-06-23 07:03:43 +00:00 (Migrated from git.hazaar.io)
created branch [`126-use-image-response-in-style-controller-and-allow-resize`](https://git.hazaarlabs.com/hazaar/hazaar-mvc/compare/master...126-use-image-response-in-style-controller-and-allow-resize)
jamie commented 2018-06-23 07:03:43 +00:00 (Migrated from git.hazaar.io)

mentioned in merge request !39

mentioned in merge request !39
jamie commented 2018-06-23 10:40:36 +00:00 (Migrated from git.hazaar.io)

mentioned in commit 046c5024fc

mentioned in commit 046c5024fcf0a6e2094adac18ff3ecb4070c6d08
jamie commented 2018-06-23 10:40:36 +00:00 (Migrated from git.hazaar.io)

closed via merge request !39

closed via merge request !39
jamie commented 2018-06-29 02:24:28 +00:00 (Migrated from git.hazaar.io)

changed milestone to %4

changed milestone to %4
jamie self-assigned this 2025-09-04 01:15:47 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: hazaar/framework#126
No description provided.