Quote from Gorandor:
Hello Community,
We'll disable *,gif as soon as vjeux figures out how,
----
'reformat all gif's into jpg format. you need to past it into visual studio vb.net. you can use visual studio .net express and its free from microsoft.com
Sub getdirpics(ByRef d As System.IO.DirectoryInfo)
Dim dd As System.IO.DirectoryInfo
Dim f As System.IO.FileInfo
For Each f In d.GetFiles
If LCase(f.Extension) = ".gif" Then
CType(Image.FromFile(f.FullName), Bitmap).Save(LCase(f.FullName).Replace(".gif", ".jpg"), _
Imaging.ImageFormat.Jpeg)
End If
Next
For Each dd In d.GetDirectories
getdirpics(dd)
Next
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim d As System.IO.DirectoryInfo = New System.IO.DirectoryInfo(Application.StartupPath)
' replace with start path in "", it will check all sub directories
getdirpics(d)
end sub
if you want to search inside of files for the extension of gif. let me know, and you can verify the how the files are stored and what type of layout structure your folders are. scoping this type of application is a must, as you dont want to search all files line by line for .gif extension. but this type of application/automation is easy as pie, or cake too.
and if you do use this code, my only request is that I am the last unicorn.
We'll disable *,gif as soon as vjeux figures out how,
'reformat all gif's into jpg format. you need to past it into visual studio vb.net. you can use visual studio .net express and its free from microsoft.com
Private Sub Form1_Load(ByVal sender As System.Object ByVal e As System.EventArgs Handles MyBase.Load
Dim d As System.IO.DirectoryInfo = New System.IO.DirectoryInfo(Application.StartupPath)' replace with start path in "", it will check all sub directories
getdirpics(d)
end sub
if you want to search inside of files for the extension of gif. let me know, and you can verify the how the files are stored and what type of layout structure your folders are. scoping this type of application is a must, as you dont want to search all files line by line for .gif extension. but this type of application/automation is easy as pie, or cake too.
Problem: That'll also replace .gifs that DO NOT animate.
ok here you go. this will search the image to see how many frames it has. if it has more then 1. then it will redraw the image to a bitmap, and save it to the same name. in order to do this it gets complicated with file access and the GUI. so thats why you see the using statement, and the moving(renameing) the old file first before saving the new one. please test this before using it of course. and the nice thing about this is all files are backed up with the prefix "Rename_" before saving them to the flatten gif file.
Sub getdirpics(ByRef d As System.IO.DirectoryInfo)
Dim dd As System.IO.DirectoryInfo
Dim f As System.IO.FileInfo
For Each f In d.GetFiles("*.gif")
Dim count As Integer
Dim StoreImage As Image = Nothing
Using img As Image = Image.FromFile(f.FullName)
Dim frmD As Imaging.FrameDimension = New Imaging.FrameDimension(img.FrameDimensionsList(0))
count = img.GetFrameCount(frmD)
If count > 1 Then
StoreImage = New Bitmap(img.Width, img.Height, img.PixelFormat)
Dim g As Graphics = Graphics.FromImage(StoreImage)
g.DrawImage(img, New Point(0, 0))
g.Dispose()
End If
frmD = Nothing
End Using
If count > 1 Then
Dim filename As String = f.FullName
f.MoveTo(d.FullName & "\Rename_" & f.Name)
StoreImage.Save(filename, Imaging.ImageFormat.Gif)
End If
Next
For Each dd In d.GetDirectories
getdirpics(dd)
Next
End Sub
I put a lot of time into my jpg avatar. Years of research and thousands of graphic design dollars.
I must say. I like the artist’s rendition of this happy face. The left eye is lower than the right, and off center further to the left. Or is the right eye further to the left, and higher than the left. It just makes me laugh when the artist he or she quirks a smile at me.
I still want to be the last unicorn! It looks like a lot of man hours went into this rendition too!
One extra vote for the pink ling being set as a "default" avatar for newcomers, it's realy nice , but...the whole point of the unicorn is incentive to change the picture (no?) and get another one that showcases a bit more who's behind the avatar ... the pinkling (eating the unicorn or not) is cool so u might get a huge cluster of people keeping it...
On a personal note, I'd be happy to draw avatars for people in need... (what they want of course, within reason and a reasonable delay).. just pm me.
I had a gif and then they said that some mods where gonna change it for me so i changed my self. Now i no longer have a gif ^_^, kinda liked the pony after it was remade some :P
I had a gif and then they said that some mods where gonna change it for me so i changed my self. Now i no longer have a gif ^_^, kinda liked the pony after it was remade some :P
I'm plural, eh? lol... or did someone else mention as well? Nice unicorn :)
Problem: That'll also replace .gifs that DO NOT animate.
I put a lot of time into my jpg avatar. Years of research and thousands of graphic design dollars.
@OneTwoSC: Go
I must say. I like the artist’s rendition of this happy face. The left eye is lower than the right, and off center further to the left. Or is the right eye further to the left, and higher than the left. It just makes me laugh when the artist he or she quirks a smile at me.
I still want to be the last unicorn! It looks like a lot of man hours went into this rendition too!
F*CK YEAH!
http://holycrapunicorn.ytmnd.com/
@crazyfingers619: Go
Omg that Unicorn with the song made me laugh haha
something like this haha ?
Could you possibly make it so that zergling is eating the Pretty Unicorn?
One extra vote for the pink ling being set as a "default" avatar for newcomers, it's realy nice , but...the whole point of the unicorn is incentive to change the picture (no?) and get another one that showcases a bit more who's behind the avatar ... the pinkling (eating the unicorn or not) is cool so u might get a huge cluster of people keeping it... On a personal note, I'd be happy to draw avatars for people in need... (what they want of course, within reason and a reasonable delay).. just pm me.
I had a gif and then they said that some mods where gonna change it for me so i changed my self. Now i no longer have a gif ^_^, kinda liked the pony after it was remade some :P
I'm plural, eh? lol... or did someone else mention as well? Nice unicorn :)
...I like animated gifs the only two people that disliked them big time are G and V... I wont switch it if I see it tbh =P