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

Improve images on committee pages #711

Merged
merged 9 commits into from
Jan 6, 2017
Merged

Conversation

jszanto
Copy link
Contributor

@jszanto jszanto commented Jan 6, 2017

No description provided.

Copy link
Contributor

@kokx kokx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like it's not entirely finished yet.

$config['cover_width'],
$config['cover_height']
);
var_dump($coverPath);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ik zie een var_dump.

'options' => [
'mimeType' => 'image/png'
'extension' => ['png', 'jpg', 'jpeg', 'bmp', 'tiff']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bmp. BURN IT WITH FIRE AND MAGNETS!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instructions unclear, made bmp the only accepted format.

$y = round($y * $size[1]);
$width = round($width * $size[0]);
$height = round($height * $size[1]);
var_dump($width,$height);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var_dump

$image->thumbnailImage($thumbWidth, $thumbHeight);
$image->setimageformat('jpg');

//Tempfile is used to generate sha1ot sure this is the best method
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reads a little uneasy, maybe because spelling errors.

Copy link
Contributor

@kokx kokx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No comment.

@jszanto jszanto merged commit b8d72b6 into GEWIS:master Jan 6, 2017
@jszanto jszanto deleted the fix/committee-pages branch January 6, 2017 13:32
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

Successfully merging this pull request may close these issues.

2 participants