BetaArchive Logo
Total Current Archive Size: 4765.54GB in 15409 files
Navigation Home Screenshots Image Uploader Server Info FTP Servers Wiki Forum RSS Feed Rules Please Donate
UP: 9d, 5h, 32m | CPU: 18% | MEM: 4995MB of 12279MB used
{The community for beta collectors}

Post new topic Reply to topic  [ 9 posts ] 
Author Message
 PostPost subject: Random tool - ImgRes for Windows        Posted: Wed Mar 14, 2012 2:07 am 
1337 Beta Collector
1337 Beta Collector
Offline

Joined
Tue Dec 01, 2009 2:56 am

Posts
6087
Had an idea a while back to write a program that loads an image, gets its dimensions and then tells you what aspect ratio it is or is closest to (4:3, 16:9, 16:10). I don't know if any such tools exist (because I haven't looked any up) so I wrote my own. Have some screenshots:

Image
This is a Win32 console app written in Visual C++ 2010. Right now it only supports PNG images, it acts funny when you feed it anything else.

Image
Image
Image

Todo list:
  • Automatically try to guess the nearest aspect ratio
  • Add support for JPEG images
  • Toss in a GUI? (mmm, complexity!)

System requirements:
  • A PC capable of running VC++ 2010-linked EXEs
  • Windows Vista or later (It will probably run under Windows XP or older but I give no support for that)

Download:

_________________
Goodbye.


Top  Profile
 PostPost subject: Re: Random tool - ImgRes for Windows        Posted: Wed Mar 14, 2012 2:09 am 
Pro Beta Collector
Pro Beta Collector
User avatar
Offline

Joined
Mon Apr 18, 2011 7:58 pm

Posts
481

Location
It depends. Which one of me are we talking about?

Favourite OS
7100
Nice! Great Idea.

_________________
Have you seen a guy around he looks like you but he's got messy hair? I think I lost him somewhere... and a pretty girl and a caveman.


Last edited by danielcarlhaffner on Fri Mar 16, 2012 7:52 pm, edited 1 time in total.

Top  Profile  WWW
 PostPost subject: Re: Random tool - ImgRes for Windows        Posted: Wed Mar 14, 2012 3:06 am 
1337 Beta Collector
1337 Beta Collector
Offline

Joined
Tue Dec 01, 2009 2:56 am

Posts
6087
Image
...and this is what happens when you feed it a JPG image.

_________________
Goodbye.


Top  Profile
 PostPost subject: Re: Random tool - ImgRes for Windows        Posted: Wed Mar 14, 2012 3:37 am 
1337 Beta Collector
1337 Beta Collector
Offline

Joined
Mon Jan 23, 2012 12:14 am

Posts
1368

Location
Orange County, California

Favourite OS
OSX 10.8 Dev 4
What did you program it in?

_________________
Image
Japanese Animation Connesieur
#nttalk is the best beta chat room on IRC!


Top  Profile  WWW
 PostPost subject: Re: Random tool - ImgRes for Windows        Posted: Wed Mar 14, 2012 3:39 am 
1337 Beta Collector
1337 Beta Collector
Offline

Joined
Tue Dec 01, 2009 2:56 am

Posts
6087
Wumbowalrus wrote:
What did you program it in?

linuxlove wrote:
This is a Win32 console app written in Visual C++ 2010.

_________________
Goodbye.


Top  Profile
 PostPost subject: Re: Random tool - ImgRes for Windows        Posted: Wed Mar 14, 2012 3:42 am 
1337 Beta Collector
1337 Beta Collector
Offline

Joined
Mon Jan 23, 2012 12:14 am

Posts
1368

Location
Orange County, California

Favourite OS
OSX 10.8 Dev 4
linuxlove wrote:
Wumbowalrus wrote:
What did you program it in?

linuxlove wrote:
This is a Win32 console app written in Visual C++ 2010.


I didn't catch that, I see it now. *facepalm*

_________________
Image
Japanese Animation Connesieur
#nttalk is the best beta chat room on IRC!


Top  Profile  WWW
 PostPost subject: Re: Random tool - ImgRes for Windows        Posted: Wed Mar 14, 2012 7:19 pm 
Ex OSBA Member
Ex OSBA Member
User avatar
Offline

Joined
Sun Jan 27, 2008 8:09 pm

Posts
3990

Favourite OS
OS X 10.8
A bit pointless when you think of how easy it is to figure out this info simply by doing Right Click > Properties, but I guess one or two people might find this useful.

_________________
Image
Image
Twitter


Top  Profile  WWW
 PostPost subject: Re: Random tool - ImgRes for Windows        Posted: Wed Mar 14, 2012 11:53 pm 
1337 Beta Collector
1337 Beta Collector
Offline

Joined
Mon Jan 23, 2012 12:14 am

Posts
1368

Location
Orange County, California

Favourite OS
OSX 10.8 Dev 4
Derf wrote:
A bit pointless when you think of how easy it is to figure out this info simply by doing Right Click > Properties, but I guess one or two people might find this useful.


Not very useless at all when a programmer is trying to see what they themselves can do with knowledge and a keyboard! :)

_________________
Image
Japanese Animation Connesieur
#nttalk is the best beta chat room on IRC!


Top  Profile  WWW
 PostPost subject: Re: Random tool - ImgRes for Windows        Posted: Fri Mar 16, 2012 3:14 pm 
1337 Beta Collector
1337 Beta Collector
Offline

Joined
Tue Dec 14, 2010 4:02 pm

Posts
5354
For the end user it may seem pointless, but for the programmer it can be a great resource of information and practice... ;)

_________________
Image
BA Wiki page | Development blog


Top  Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 




Who is online

Users browsing this forum: Bing [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.

Powered by phpBB® Forum Software © phpBB Group

Copyright © 2006-2013

 

Sitemap | XML | RSS