How to define the resize resolution???

RealTK

Joined: 2005-01-13
Posts: 6
Posted: Thu, 2005-01-13 22:52

Hi.

I'd like to know how to define the resolution that G2 resizes the images to?
I can't seem to find an option anywhere and if it should be configured in the code, I don't know where it is. :cry:

Can anyone help me with this, please? All my images are getting resized to 600x400 even though, I want them to be resized to 1024x768.
----

Gallery version: Gallery 2.0 Alpha 4

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-01-14 01:30

Edit album / album tab
or Edit photo / photo tab

 
RealTK

Joined: 2005-01-13
Posts: 6
Posted: Fri, 2005-01-14 13:23
mindless wrote:
Edit album / album tab
or Edit photo / photo tab

I've tried to adjust the resolution from there but it doesn't seem to have any effect on at least the images I upload through the upload applet.

And why is there only one number to adjust in the album properties for resolution?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-01-14 13:43

update to a recent nightly snapshot and there are 2 numbers. previously it always fit the image into a square.

when you change the value for an album make sure to check the "rebuild resizes" checkbox if you want the change to apply to photos you've already uploaded.

 
RealTK

Joined: 2005-01-13
Posts: 6
Posted: Fri, 2005-01-14 20:59

I think the problem is that I'm resizing the images before upload in the upload applet,
because I wouldn't want to store the large (sometimes 5Mb) original images on the server.
But the applet gives an error about imagemagick and says that it can't resize the images before download, even though, it seems to do it anyway.
Only problem is that they end up being 600x400 no matter what the album settings are.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2005-01-15 01:18

The applet doesn't let you decide what to resize it to yet. We'll do that eventually, though.

 
RealTK

Joined: 2005-01-13
Posts: 6
Posted: Sat, 2005-01-15 18:04

Oh... Is there any way to modify the applet to resize all pictures to a certain resolution or is there any solution to this? :/
Because I'd like it to be possible to upload any size pictures (even over 5mb) but so that they are not stored in such a large size in the server.

I'd like to do this with the applet because it doesn't limit the amount of pictures sent or how large the files originally are.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2005-01-15 20:06

very soon (in the next few days maybe) there will be a module for defining the max resolution or filesize for uploaded pictures.. this is done on the server side though, so it will send the whole 5mb picture and then resize it. so this will get you the end result you want but with longer upload times.. eventually the applet will be able to resize before uploading, but i don't know when that will be implemented. Gallery Remote can do this already.

 
RealTK

Joined: 2005-01-13
Posts: 6
Posted: Sat, 2005-01-15 20:38

I thought the upload applet already resizes the pictures before upload because the uploads go so fast (takes only a few seconds).
5 megabytes can't be uploaded as quickly as it does (I have 100k/sec upload). And the original files aren't there.
At least you can't get an original size image through the gallery, only the 600x400 version.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-01-16 01:48

correct. i meant "eventually the applet will be able to resize before upload at a size you want"

 
RealTK

Joined: 2005-01-13
Posts: 6
Posted: Sun, 2005-01-16 05:37

Any way to get the applet to resize them to any other resolution by adjusting something myself?
Or is there any other way to resize the pictures automatically before sending them except gallery remote?

If there isn't, I guess I'll just have to wait. :)

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2005-01-18 03:26

Yes, you can edit the Java code for the applet :-) Submit a patch back to us when you're done. Otherwise, we'll get to it when we have time...