By Norman Wensky on Friday, 15 December 2017
Posted in General Issues
Replies 3
Likes 0
Views 0.9K
Votes 0
Is there any option to set the default image dimensions and source to "original" instead of "large" for the media manager window?

I have two author accounts, on the first one I when I change the image source it will keep that selection for other images later in the media manager.

On the second account, it jumps back to large everytime I open the media manager, regardless of the previous selection.

I just want to have the original image size preselected.
Hey Norman,

Hm, we don't actually have a settings for this but here's what you can do, edit the file /administrator/components/com_easyblog/includes/mediamanager/mediamanager.php and at line 1287, change the codes below,

[gist]
$preferredVariations = array('system/large', 'system/original');
[/gist]

To,

[gist]
$preferredVariations = array('system/original');
[/gist]

This will ensure that when a new image is uploaded, it will always try to pick the original variation.
·
Friday, 15 December 2017 23:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Just for the sake of completeness:

We are just pulling the original image in the frontend, overriding everything set in the backend for this.

Providing a hackish solution which is not update-safe isn't a good habit imho.

Regards,

Dennis Heiden
(dev of Mr. Wensky)
·
Tuesday, 13 February 2018 23:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Dennis,

I have added this as a feature request and we'll see we can add a settings for this on the next release.
·
Wednesday, 14 February 2018 00:26
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post