Mini Frontpage image aspect ratio not preserved
- Posted by Diego E. (3) Offline
Turning "Preserve aspect ratio" on or off doesn't do anything, it's always square
11 years 6 months ago #1
by Diego E.
Please Log in or Create an account to join the conversation.
- Posted by erwinschro (1034) Offline
Hi
Yes so sorry we forgot to mention that for this new version of MiniFP, aspect ratio option only works if your images are came from inside the Article Editor, not from Introimage and Fulltext image under Images and Links Tab.
11 years 6 months ago #2
by erwinschro
Yes so sorry we forgot to mention that for this new version of MiniFP, aspect ratio option only works if your images are came from inside the Article Editor, not from Introimage and Fulltext image under Images and Links Tab.
Please Log in or Create an account to join the conversation.
- Posted by erwinschro (1034) Offline
mmm weird enough
I've just done some test on the demo site, the aspect ratio works fine on the demo link below.
are you sure your images are not in a square dimension (with same or nearly same height and width) ?
11 years 6 months ago #3
by erwinschro
I've just done some test on the demo site, the aspect ratio works fine on the demo link below.
are you sure your images are not in a square dimension (with same or nearly same height and width) ?
Please Log in or Create an account to join the conversation.
- Posted by Diego E. (3) Offline
This extension is awesome, I love it, excepto for this error which I have no idea how to solve. I've tried inserting the images different ways, changing the configuration, modifying the image HTML, everything D:
11 years 6 months ago #4
by Diego E.
Please Log in or Create an account to join the conversation.
- Posted by Matthias Körner (1) Offline
Hi! I have a similar issue with the thumbnail size:
I'm using phocagallery-generated thumnails as article-images (as intro-image). Since they already have the right size and are correctly resized preserving aspect ratio, there is no need for Mini Frontpage to resize them again.
So my solution would be to comment out the resizing and just copy the original image to a thumbnail. We would I find this in the code?
Thanks in advance for your help!
10 years 11 months ago #5
by Matthias Körner
I'm using phocagallery-generated thumnails as article-images (as intro-image). Since they already have the right size and are correctly resized preserving aspect ratio, there is no need for Mini Frontpage to resize them again.
So my solution would be to comment out the resizing and just copy the original image to a thumbnail. We would I find this in the code?
Thanks in advance for your help!
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5263) Offline
Hi Matthias,
If you're familiar with PHP, then the code is on the files under folder mod_minifrontpage/themes
Find the active theme you use, with your favorite php editor, find all code like this :change that src="" value with the orig image path
10 years 11 months ago #6
by TemplatePlazza
If you're familiar with PHP, then the code is on the files under folder mod_minifrontpage/themes
Find the active theme you use, with your favorite php editor, find all code like this :
src="<?php echo mfpResizeImageHelper::getResizedImage ...
Please Log in or Create an account to join the conversation.