
- #HOW DO I RESIZE A PHOTO TO FIT FB COVER CODE#
- #HOW DO I RESIZE A PHOTO TO FIT FB COVER PROFESSIONAL#
Now the event photo has three different locations, but the recommended event photo size of 1920 x 1005 will scale to work for all three. Where Your Facebook Event Image Appearsįacebook has made several changes to the event photo over the last few years. Just ensure the most essential elements of your image, like text details, are centered to avoid cropping and our recommended size of a 16:9 image should help you get a crisp image every time. So if you continue to create event cover images that are 1080 pixels call, Facebook will automatically shorten them to fit. With the most recent Facebook layout update, a minor event photo image size change was also included. If you upload an image that’s too small, it could appear stretched in some formats.

#HOW DO I RESIZE A PHOTO TO FIT FB COVER PROFESSIONAL#
While the pre-set theme photos may be alright for small private gatherings, if you’re hosting a professional event, you definitely want to highlight your brand style and story as well as convey all the essential event details with a fantastic Facebook event cover photo. Here you can adjust the size of the image to fit your event dimensions.

These options replace the need for an event image, but there’s only so many preset illustrations to choose from, and these can look pretty generic.
#HOW DO I RESIZE A PHOTO TO FIT FB COVER CODE#
$img_name = writeToImage($src, $des) //writeToImage() is just a demo function created by me to do some other things with them which do not affect this part of code $dst_r = ImageCreateTrueColor( 854,316 ) List($k, $l) = getimagesize($src) // $src = image source

$y = Y origin cordinate variable obtained by dragging image I know that the cover dimension of facebook is 851x315, so here is what I am doing: //$x = X origin cordinate variable obtained by dragging image NOTE: The cover has to be the pixel perfect I just wanted to know what algorithm facebook uses to set the image dimensions(from 720 to 638) For example, if the original image dimensions are 920x720, the dimensions of same image while it is on facebook setting-cover page(drag image to position cover thing), the dimensions of the image are 851圆38. The Facebook uses some algorithm to convert the cover image size to something different during dragging thing. The part I am stucked at is the "Drag image to position cover" thing.

Basically I am after the same layout of the cover as on facebook, so that user can get the same result while using the same cover on my site as well as on facebook. What basically I am trying to do is to create a cover page for my personal website, just like facebook.
