Avatar Preview

言語: JP EN DE FR
2010-06-21
New Items
users online
フォーラム » FFXIAH.com » Suggestions » Avatar preview
Avatar preview
 Valefor.Sehachan
Guide Maker
Offline
サーバ: Valefor
Game: FFXI
user: Seha
Posts: 24219
By Valefor.Sehachan 2013-03-21 17:10:50  
Hi~
I have no idea if it's feasible or not, but would it be possible to implement a preview for avatars? Cause often I have to cut them or resize them to make them fit the way I want and would be nice to see how it looks before actually uploading it.
[+]
 Bismarck.Moonlightespada
MSPaint Winner
Offline
サーバ: Bismarck
Game: FFXI
Posts: 9553
By Bismarck.Moonlightespada 2013-03-21 17:39:41  
[+]
 Fenrir.Scragg
Administrator
Offline
サーバ: Fenrir
Game: FFXI
user: Scragg
Posts: 2579
By Fenrir.Scragg 2013-03-21 18:17:53  
Code css
<style>
    .container {
        height: 100px;
        width: 100px;
        position: relative;
        border:1px solid #000;
        overflow: hidden;
    }

    /* Use for wider images */
    .container img.wide {
        width: 100px;
        position: relative;
        left:50%;
        top:50%;
        margin-left: -50px;
        margin-top: -62px; /* set to .5*resized_height */
    }

    /* Use for taller images */
    .container img.tall {
        height: 100px;
        position: relative;
        left:50%;
        top:50%;
        margin-top: -50px;
        margin-left: -144.5px; /* set to .5*resized_width */
    }
</style>

        Tall Image
<div class='container'>
    <img class=wide src='http://img23.imageshack.us/img23/7272/ohjithis1.png' />
</div>

        Wide Image
<div class='container'>
    <img class=tall src='http://www.google.com/images/srpr/logo4w.png' />
</div>
[+]
 Valefor.Sehachan
Guide Maker
Offline
サーバ: Valefor
Game: FFXI
user: Seha
Posts: 24219
By Valefor.Sehachan 2013-03-21 18:26:06  
...??? <_<"
[+]
 Fenrir.Yuriki
Offline
サーバ: Fenrir
Game: FFXI
user: Yuriki
Posts: 583
By Fenrir.Yuriki 2013-03-21 18:45:18  
Valefor.Sehachan said: »
...??? <_<"
Sorry for the useless comment but this made me laugh more than I should have.
[+]
 Valefor.Sehachan
Guide Maker
Offline
サーバ: Valefor
Game: FFXI
user: Seha
Posts: 24219
By Valefor.Sehachan 2013-03-21 18:47:36  
That's not what I asked.
 Fenrir.Jinjo
VIP
Offline
サーバ: Fenrir
Game: FFXI
user: Minjo
Posts: 2269
By Fenrir.Jinjo 2013-03-21 18:49:43  
Pretty sure it's the css of what happens to your avatar. If you save that to a notepad file with a .htm extension you can probably adjust the urls (even to local files) for your own previews.
[+]
 Valefor.Sehachan
Guide Maker
Offline
サーバ: Valefor
Game: FFXI
user: Seha
Posts: 24219
By Valefor.Sehachan 2013-03-21 18:53:47  
Thanks for explaining, I had no idea how to interpret that reply lol.
Offline
Posts: 42646
By Jetackuu 2013-03-21 19:19:13  
you can.

or you can just resize to 100x100 px as that is what the file size is.

or if it's a square image it should resize it to that, proportionality.

could download html validator lite, and play with that some.

I could change it up a bit later for you if you want, but I am kind of in class.
 Cerberus.Eugene
Offline
サーバ: Cerberus
Game: FFXI
user: Eugene
Posts: 6999
By Cerberus.Eugene 2013-03-21 19:51:17  
It's not a super intelligent algorithm either. It's looking for roughly a z by z dimensional chunk in the centerish of whatever image you want to upload.

You can make it easy on yourself and crop whatever image you want into a rough square before you upload, that way the guesswork out of the cropping and resizing done by the code. all thats left is resizing a larger square into a smaller one, which isnt terribly difficult.
[+]
 Caitsith.Zahrah
Offline
サーバ: Caitsith
Game: FFXI
user: zahrah
By Caitsith.Zahrah 2013-03-21 20:00:03  
Cerberus.Eugene said: »
It's not a super intelligent algorithm either. It's looking for roughly a z by z dimensional chunk in the centerish of whatever image you want to upload.

You can make it easy on yourself and crop whatever image you want into a rough square before you upload, that way the guesswork out of the cropping and resizing done by the code. all thats left is resizing a larger square into a smaller one, which isnt terribly difficult.

Simplicity is difficult, right?
 Valefor.Sehachan
Guide Maker
Offline
サーバ: Valefor
Game: FFXI
user: Seha
Posts: 24219
By Valefor.Sehachan 2013-03-22 06:46:46  
Following your logic we should remove all of the code buttons. Cause I mean we can all type them out ourselves right?
I asked if this was easy to implement it'd save the hassle of having to crop and recrop while having a misplaced avatar already uploaded. I said it would be nice if it was possible, I didn't demand it and if it's too much work I'm fine living without it like we always had.

Thanks for being as abrasive as usual Zahrah.
[+]
 Fenrir.Scragg
Administrator
Offline
サーバ: Fenrir
Game: FFXI
user: Scragg
Posts: 2579
By Fenrir.Scragg 2013-03-22 09:19:24  
Sorry I misunderstood. I thought you wanted preview before uploading, so the code I suggested was to give you a pretty accurate idea of what an image would look like without uploading anything.

Now I'm thinking what you really want is a way to see the avatar and possibly adjust it before making it live (similar to what happens with screenshots), which does require an upload. Am I correct in this assumption?
 Bahamut.Mizuharu
Offline
サーバ: Bahamut
Game: FFXI
user: Mizuharu
Posts: 1988
By Bahamut.Mizuharu 2013-03-22 09:30:50  
Fenrir.Scragg said: »
Sorry I misunderstood. I thought you wanted preview before uploading, so the code I suggested was to give you a pretty accurate idea of what an image would look like without uploading anything.

Now I'm thinking what you really want is a way to see the avatar and possibly adjust it before making it live (similar to what happens with screenshots), which does require an upload. Am I correct in this assumption?
Oh God please do this if possible. Would be so nice to have this feature.
 
Offline
Posts:
By 2013-03-22 09:34:09
 Undelete | Edit  | Link | 引用 | 返事
 
Post deleted by User.
 Bismarck.Misao
Offline
サーバ: Bismarck
Game: FFXI
user: misacat
Posts: 22620
By Bismarck.Misao 2013-03-22 09:36:05  
this would be nice indeed, sometimes when uploading a custom avi, I keep tend up uploading 3~4 of the same one, each with minor tweaks, and each going live, and have them look weird or broken (in case of bad size/gif).
then you go "well this looks derp"
and have to look up an old avi to replace the derp one xD

totally not needed, but would be cool to have~
[+]
Log in to post.