| Author |
Message |
intel352
Beginner


Joined: Apr 23, 2003 Posts: 5
|
Posted: Wed Aug 20, 2003 4:47 pm Post subject: NetPBM image resize function -> question |
|
|
This is less a gallery-specific question, more a programming question...
i've been working on some image resize functions for nukestyles, and all my code (for gd and netpbm) has been pieced together over the internet
i've come into an issue tho... since netpbm likes to maintain proportions (which is usually good), if there is a tall or wide image, it is usually WAY too small when the thumbnail is created...
shawn has asked me to make the resize function create non-proportional images, or at least have a minimum size limit... is there any way to do this with netpbm? i've had a hard time finding good enough documentation, so it's been a pain just creating the resize function that i have now, lol
if you have any suggestions, they would be greatly appreciated
thanks |
|
| Back to top |
|
|
AdBot
|
| Post subject: NetPBM image resize function -> question |
|
|
|
|
|
| Back to top |
|
 |
intel352
Beginner


Joined: Apr 23, 2003 Posts: 5
|
Posted: Thu Aug 21, 2003 5:21 am Post subject: |
|
|
so does nobody have any experience with netpbm? _________________
[nukebbmods.net]
NukeBBMods.net [nukebbmods.net] || CSMapCentral [csmapcentral.com] |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Thu Aug 21, 2003 5:27 am Post subject: |
|
|
| Is there no DOCs at sourceforge? |
|
| Back to top |
|
|
intel352
Beginner


Joined: Apr 23, 2003 Posts: 5
|
Posted: Thu Aug 21, 2003 5:37 am Post subject: |
|
|
there is, but i've come across nothing yet to set a minimum size limit for the image, or to set *exact* size without regard to the proportions
i must be looking in the wrong places, lol, but everything i've found so far (setting -width and -height, or just using -xysize) all seem to do the same thing, save proportion
i'll keep searching.. _________________
[nukebbmods.net]
NukeBBMods.net [nukebbmods.net] || CSMapCentral [csmapcentral.com] |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Thu Aug 21, 2003 5:45 am Post subject: |
|
|
If you haven't aready done so - I would email Mr NETPBM.
His email is on the sourceforge site.
http://netpbm.sourceforge.net
Sry I can't help anymore (way above my head!! ) |
|
| Back to top |
|
|
intel352
Beginner


Joined: Apr 23, 2003 Posts: 5
|
Posted: Thu Aug 21, 2003 6:03 am Post subject: |
|
|
i was searching through again, looks like i finally found what i needed (missed a command that i can use, in the pnmscale file)
thanks for your help though  _________________
[nukebbmods.net]
NukeBBMods.net [nukebbmods.net] || CSMapCentral [csmapcentral.com] |
|
| Back to top |
|
|
intel352
Beginner


Joined: Apr 23, 2003 Posts: 5
|
Posted: Thu Aug 21, 2003 9:19 am Post subject: |
|
|
lol, i was wrong, that command didn't work, but i emailed Mr netpbm, lol, so hopefully he'll respond soon
thanks again _________________
[nukebbmods.net]
NukeBBMods.net [nukebbmods.net] || CSMapCentral [csmapcentral.com] |
|
| Back to top |
|
|
|
|
|
|
|