You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another small question on your very interesting plugin.
I have created my own template, with a set of attached sizes public $attached_sizes = [ 'thumb' => 'thumbnail_grid', 'full' => 'full', ];
I have specified that the thumbnail should be 200x200 with cropping (in wordpress) and still one image renders the thumbnail in a 200x120 (WxH) format.
I suspect that this has something to do with Gallery_Data_Renderer.php
public function prepare_data() {
$data = array(
'type' => $this->attachment->type,
'ratio' => $this->attachment->get_ratio(),
);
where the get_ratio affects the layout. (I haven't figured out how though)
The question is: Can I force the layout to be exactly 200x200 for all the images under one gallery?
Thanks,
Nikolas
The text was updated successfully, but these errors were encountered:
or at least, can I override the function somehow to be able to "force" the ratio to be 1? or to be able to call the function for a specific type of image size (other than full)?
Hi Norris,
Another small question on your very interesting plugin.
I have created my own template, with a set of attached sizes
public $attached_sizes = [ 'thumb' => 'thumbnail_grid', 'full' => 'full', ];
I have specified that the thumbnail should be 200x200 with cropping (in wordpress) and still one image renders the thumbnail in a 200x120 (WxH) format.
I suspect that this has something to do with Gallery_Data_Renderer.php
where the get_ratio affects the layout. (I haven't figured out how though)
The question is: Can I force the layout to be exactly 200x200 for all the images under one gallery?
Thanks,
Nikolas
The text was updated successfully, but these errors were encountered: