• [Mod] Auto image resize on upload v2.0.1 (2010-12-18) 4 0 5 1
Currently:  

Author Topic: [Mod] Auto image resize on upload v2.0.1 (2010-12-18)  (Read 592105 times)

0 Members and 2 Guests are viewing this topic.

Offline |Rene|

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Bauwagencrew
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #150 on: March 18, 2006, 09:05:22 PM »
Can anyone help here? I'm thinking the problem isn't solved yet.

Offline wallpapers

  • Full Member
  • ***
  • Posts: 107
    • View Profile
    • Tuned-Cars.Net
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #151 on: March 21, 2006, 07:00:10 AM »
this is a great mod  :D
i don't install this mod before and it's works great with 1.7.2  :lol:



Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #152 on: March 23, 2006, 06:05:20 PM »
Hi
The mod works just fine but there are few things that I want to do. Let me ask one by one.

(1)I set Max width & height as 1024*768. I uploaded an image 1280*1024 and the result was 1024*819.
In setting I have Resize proportionally set to true. I also tried other two options but th result is different.
So the question is how can I make it exactly “1024*768”

//Edited
Found a Stupid mistake of mine. Removing this part
« Last Edit: March 25, 2006, 05:06:37 AM by Fastian »
I m not a  Programmer.
          But
I m a Good Learner.

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #153 on: March 25, 2006, 05:02:58 AM »
V@no

If you could just give few minutes here. I believe this is not going to be too difficult.  :)

For standard wallpaper sizes, it may not cause that much problem but if someone upload an image say 1600*1000
The result is really very bad. 


I m not a  Programmer.
          But
I m a Good Learner.

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #154 on: March 27, 2006, 03:24:29 PM »
Hi again

Sorry if I am acting like a child but I can’t stop myself.

I am building a wallpaper based site. The whole layout of the site is disturbing with different size of wallpapers. (Different dimensions)
People have started uploading and I m getting images in all dimensions..
Today I got few images in 1024*1000 & their thumbnails 133*130.
But I want to have only Full size as 1024*768 & thumbnails as 133*100.
Currently auto resize function is resizing with fixed width & proportional height. All I want to do is make it Fix Width & Fix Height.

Please suggest me something.

At least tell me if it’s not possible. I am not getting any reply and that’s disturbing too.    :cry:

Help me Please.  :(
I m not a  Programmer.
          But
I m a Good Learner.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #155 on: March 27, 2006, 03:52:58 PM »
What you are asking will not resize images proportionaly, and the result will be ugly...try change height of an image and you'll see what I mean.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #156 on: March 27, 2006, 05:41:42 PM »
What you are asking will not resize images proportionaly, and the result will be ugly...try change height of an image and you'll see what I mean.

You mean resizing with Fixed Width & Fixed Height will make images ugly??
That is quite possible but in only one case. Where image will have height greater than width.

But in my case almost everyone will upload standard wallpaper which always has width greater that height.

I try uploading a wallpaper of 1280*1024 (a standard size) & the result was 1024*915 & thumbnail 133*111

Currently, with every new upload, I have to do this:
• Download that wallpaper
• Resize it
• Upload
• Delete thumbnail
• & then create thumbnail.

So if making Width & Height Fixed have a slight effect on image quality I would go for this than to do all these steps.  :|

Or You can suggest me a better way.
I m not a  Programmer.
          But
I m a Good Learner.

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #157 on: March 27, 2006, 05:58:49 PM »
the better way would be  only to fix one value,
e.g. width, so the size will be calculated automaticcly,
and the ratio of the image will not be changed.
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #158 on: March 27, 2006, 08:24:54 PM »
the better way would be  only to fix one value,
e.g. width, so the size will be calculated automaticcly,
and the ratio of the image will not be changed.

I can’t understand U.
Isn’t This the only way currently available??? Fix either height or Width.

But my problem is, I want to fix Both. And I explained the reason above.
Wallpapers have Standard resolutions.
(1024*1000) is not a good wallpaper as (1024*768)
I m not a  Programmer.
          But
I m a Good Learner.

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #159 on: March 27, 2006, 10:48:09 PM »
there is no way and will be no way,
if you resize an image with fixed width & height without losing the apsect ratio from the origin.
only solution for problems like that is to add borders to keep the correct aspect ratio.
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #160 on: March 28, 2006, 01:51:47 AM »
Alright, you want proof why fixed width and height can distort images with non-standart dimentions?
here:
The first attachment is original image (946x268) with non-standart dimention ratio.
And the second attachment is resized image to (800x600) which is 4:3 dimention ratio (1024x768 or 1280x1024 are also 4:3 ratio).
Now see what happend?
Even if "most" of the images you receive are with "standart" ratio, there still will be some with non-standart, and by resizing this way you will destroy them..
« Last Edit: March 28, 2006, 02:02:28 AM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #161 on: March 28, 2006, 10:27:29 PM »
Alright, you want proof why fixed width and height can distort images with non-standart dimentions?
here:
The first attachment is original image (946x268) with non-standart dimention ratio.
And the second attachment is resized image to (800x600) which is 4:3 dimention ratio (1024x768 or 1280x1024 are also 4:3 ratio).
Now see what happend?
Even if "most" of the images you receive are with "standart" ratio, there still will be some with non-standart, and by resizing this way you will destroy them..

Yes
You are absolutely right. This is a possibility.
This will surely happen and when width & height will have a bigger difference, the result will be horrible.

Perhaps I forgot to mention, Users can’t upload anything below 1024*768. (using  your Mod Here)

Now if u just try to resize any 1280*1024 image with fixed width keeping aspect ration it will resize to 1024*819. (Using any image editor)
If u make it 1024*768 (Fixed) the result will not have any difference. (or at least minimum)

Most of the time I experience these kind of difference in dimensions. Till now I haven’t seen any unusual thing.

Actual Image
http://img70.imageshack.us/img70/9977/actual10242pq.jpg
Keeping Aspect Ratio (Fixed Width)
http://img141.imageshack.us/img141/3686/aspectratio6vj.jpg
Fixed Width & height
http://img66.imageshack.us/img66/9683/fixed9mh.jpg

But I DO understand your point. That’s why I m droping my request.

Is there any way I can check that which Image is bigger than 1024*768 (after being uploaded) ??
(For few user I don’t require to approve )
I m not a  Programmer.
          But
I m a Good Learner.

Offline curtmo

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #162 on: April 11, 2006, 08:28:07 PM »
I've got everything except:

Step 5
Download "Autoimage Install" file.

The link posted there times out and I can't seem to get the file.  Is it posted elsewhere?  Thanks for your help.

-Curt

Offline ctforums

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #163 on: April 18, 2006, 07:30:07 PM »
great mod, been using it for some time now  :wink:

just wondered, is there any way that I can get it to compress the image even if it is less than the maximum width?  Most images that are uploaded are at least 800x600, so I have my maximum width set to 799 pixels.  However, images that are say 600x480 are uploaded without being recompressed because they are not over 799 pixels wide.

Thanks for any help.

Offline IWS_steffen

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • Kreuzfahrtschiffe gestern und heute
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #164 on: April 22, 2006, 05:39:38 PM »
Hi V@no

cooler MOD Danke

läuft perfekt.