Magnolia image variation set the crop position - magnolia

In Magnolia, I believe that with image variations if you set crop to true the crop position is center by default. Eg. crops the top and the bottom equally. However, I would like to create a version that only crops from the top or from the bottom (or from left / right). This is very easy to do in Wordpress, but I can't find any documentation for Magnolia.
relevant links
https://documentation.magnolia-cms.com/display/DOCS57/How+to+work+with+images+using+imgfn
https://documentation.magnolia-cms.com/display/DOCS53/Imaging+module
Found this on google groups
https://groups.google.com/a/magnolia-cms.com/forum/#!searchin/dev-list/crop%7Csort:date/dev-list/duMR1ePQHEk/lJK4_d-1AwAJ
Hey guys,
Currently the magnolia imaging module cropping and resizing is working
very nicely for us. I'm implementing responsive images, but would
like responsive header images as well (which means I want to set a
focal point on the images) --> for example; focus on top right and
then crop image accordingly.
What JAVA class would I have to change to edit the standard behaviour
of the cropping focussing on the center of the image?
I already looked into this java operation:
[url]https://nexus.magnolia-cms.com/content/sites/magnolia.public.sites/modules/magnolia-imaging/3.1.4/apidocs/info/magnolia/imaging/operations/cropresize/AutoCropAndResize.html#getEffectiveTargetSize(java.awt.image.BufferedImage,
info.magnolia.imaging.operations.cropresize.Coords,
info.magnolia.imaging.ParameterProvider)[/url]

I stumbled upon this while looking for topics regarding the Focal Point extension for Magnolia which is supposed to do exactly what you are planning to implement yourself.
Maybe this will help you: https://wiki.magnolia-cms.com/display/EX/Focal+Points#FocalPoints-Installation
Apart from that, the default class that does the Resizing is
info.magnolia.templating.imaging.variation.SimpleResizeVariation
This is mentioned briefly in the Magnolia documentation
https://documentation.magnolia-cms.com/display/DEV/Scaled+image+quality?focusedCommentId=82122990#comment-82122990

Related

Background Image not expanding with it's parent

i am currently doing a challange on frontend mentor but i have a problem with the background images i used to create the curved sections, if you go to the developer's page, and expand the screen to let's say 2000px, the curved section do not expand
A picture of what i am describing
The code to the github repository is https://github.com/Nadine-Green/Huddle-Landing-Page-With-Curved-Sections, i was thinking of using it as a direct image instead of it being a background, but i just wanted to hear from you all first.
I checked your GitHub repository and couldn't find the specific code referring to your attached screenshot containing curved background images.
Anyways refer to this it will help you take a better understanding of how to use background images properly on all screens (responsive).
If you are able to share the specific code snippet you are referring to with your question I would be able to help you further on.

Unable to resize images within portfolio section

Our developer has disappeared off the face of the planet and when our web server updated it's PHP version, formerly square images have cropped to landscape.
https://www.weareabsoluteuk.com/retail/
The section in question is the portfolio (screenshot attached) these were previously square but not display landscape despite the featured images still being a 1:1 ratio.
I'm familiar with Divi but this seems to be a custom built slider the developer has made and I'm just trying to figure out how I can make these images display as square again as we've sent countless requests to our developer to no avail
enter image description here
Would really appreciate a point in the right direction as I can get the containers to the size they should be but the image never fills them
Thanks
.et_pb_row
for this class max-width: 1080px is there, so it is restricting the images to look like rectangle instead of square, and your images are not square
your images are of resolution 400 x 284, so it wont look like square. You can try images as background images in order to appear them as square.

scroll pic with fixed position

Good day, I'm having a problem achieving scrolling image with fixed position.
I have done half way of achieving what i wanted by creating two background images with fixed positions, (1 is normal, 2 is gray scaled).
once i upload it into wp site, they stay in background + they stay positioned at the top left of the page, (even after i specify their location, but images fixed to the view port, which what i don't want).
here's the link of my code: [https://jsfiddle.net/rf759hw3/1/][1]
now what i wanted to achieve is:
1 - keeping images in specified position while scrolling.
2 - once i reach to page section which has image, only then scrolling start from greyscale, to original (not while i scroll the page itself).
i found a website which achieve same concept which I'm looking to achieve:
http://tnc.org.cn/#TNC#events (the river section)
but their heavily filled with JS with many dependencies, and i am not yet familiar with js btw.
after days of research i found something which can achive my purpose using js called "Magic Scroll" , but i couldn't find an example which suites my purpose to achieve, which is keeping my images in position as i scroll and overlap one another when i reach their section , any advice or help is much appreciated. Thanks

WP Revolution Slider - display problems

I'm having trouble getting Revolution Slider (version 5.2.5.3) to work properly on my website and I'm looking for some help.
For reference the test page I'm using can be located here: http://www.capidale.co.uk/home-2
The problem I'm having is the background images on each slide are "zoomed" in. All images are 960x350 and I've set the grid settings also for 960x350. However, inspecting the code, the background images appear to being assigned values of 1653x549.
I've racked my brain but I just can't get it to work. I've tried using the images as "layers" and setting the background to transparent. But then I can't get the images to display at all.
Appreciate any help. Thank you.
i have looked at the code and it says the natural values for the
Best best is to resize the images so they are 960x350 this should fix the issue if the image is zoomed still on the styling of the image set max-width:960; and max-height:350;
to save you the trouble use this image and replace the existing img, if it works then this is due to the natural sizes of the image
:D

How do I make a logo align to artboard as one object in adobe illustrator?

I have been working on this issue for days and have been trying different methods that I have found in similar questions on stackoverflow and other forums to make this work but can still not figure out what is keeping me from aligning the entire object as one in adobe illustrator.
I have grouped all of the objects and the objects are merged into one layer. I click Align in the control panel. Then I make sure Align to Artboard is selected. I also click on Transform to make sure the two boxes are unchecked. Then I click Align to center horizontal, everything moves accordingly. Then when I click Align to center vertically, the logo is altered. All I am trying to do is get the entire logo centered on the artboard.
Does anyone have an idea on what step I am missing to make the entire logo move as one object?
I didn't have enough reputation to post images so I provided the image links below.
Before: http://tinypic.com/r/fxyq1h/8
After: http://tinypic.com/r/2gui1ph/8
You can see that the smile is moved up a few pixels which is driving me crazy. I can resize the objects as one. I can move the objects as one. But I can't align the objects to the center of the artboard as one.
You have to active the guideline, but it's already activated.
You should see some tutorial one Adobe TV

Resources