Open iandonovan opened 11 years ago
Would it better to resize the images, or find images with dimensions that better fit the ads they're replacing?
Here is the Flickr documentation on the size of the photos I can grab. None of them perfectly overlaps with any of the Facebook ads, so some resizing will always be necessary. (Flickr gives square-ish photos.) Generally, the only corgis that are noticeably stretched are the ones on the right side of the screen when looking at a Timeline; the news feed ones are (usually) a-okay.
I guess what I'm saying is that I don't know if we're able to get photos that perfectly fit the ads. Better fit? Probably. The ads I mentioned, though, are fucking tough. Those are the edge cases.
There is a resize library in jQueryUI, though. I'll have to look up how to use jQuery in a Chrome extension (it's a bootstrapped app) but that seems like something I could definitely use. Basically let the user re-size those edge-case corgis.
What do you think?
Could you just programmatically resize the images instead of having the user do it? I'm not sure I see the benefit of having the user resize it themselves, unless that's really what Dan wants...
I'm not really following: I am programmatically resizing the images. I get a picture from Flickr of some size, then I assign it the size of the ad it's replacing. For the tricky ads on the Timeline pages, that's what makes 'em stretched. If there's a way to programmatically see that an image is stretched, fuck yeah, let's do that.
Yeah, programmatically determining that an image won't work is what I'm getting at. When you go to resize the image into the area of the Facebook ad, look at how much the dimensions are going to change, and if it's over some threshold, request another one.
Problems with this are:
Hmmmmm.
I think it's best to get two classes of images: One for the newsfeed ads and the ads below the mini-ticker, and one class for Timelines. The timeline ones will be smaller, so I can (A) not stretch them as much or (B) just display them at full-size, hoping the CSS of the page won't look too awful.
Some photos are all stretched, particularly in the sidebar, and even MORE particularly on the sidebar when viewing profiles. Dan Casey requested a way to re-size the photos in-browser. Click-and-drag a corner?