Skip to content

Commit

Permalink
2004-07-12 Pierre-Luc Paour <gallery@paour.com> (1.4-RC2-b1)
Browse files Browse the repository at this point in the history
	* Fixed hidden album bug in slideshow applet.
	* Fixed move album to command attempting to move when Cancel is clicked.
	* Fixed Java resize when thumbnails are present.
  • Loading branch information
Pierre-Luc Paour committed Jul 12, 2004
1 parent 77c09a4 commit 7c54c16
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 46 deletions.
36 changes: 0 additions & 36 deletions AppletTest.html

This file was deleted.

6 changes: 6 additions & 0 deletions ChangeLog
@@ -1,3 +1,9 @@
2004-07-12 Pierre-Luc Paour <gallery@paour.com> (1.4-RC2-b1)

* Fixed hidden album bug in slideshow applet.
* Fixed move album to command attempting to move when Cancel is clicked.
* Fixed Java resize when thumbnails are present.

2004-07-10 Pierre-Luc Paour <gallery@paour.com> (1.4-RC1)

* Fixed hidden image bug in slideshow applet.
Expand Down
12 changes: 8 additions & 4 deletions com/gallery/GalleryRemote/AlbumInspector.java
Expand Up @@ -239,12 +239,16 @@ public void actionPerformed(ActionEvent e) {
// todo
} else if (source == jMove) {
MoveAlbumDialog mad = new MoveAlbumDialog(mf, album.getGallery(), album);
album.moveAlbumTo(GalleryRemote._().getCore().getMainStatusUpdate(), mad.getNewParent());
Album newParent = mad.getNewParent();

// todo: this is too drastic...
album.getGallery().reload();
if (newParent != null) {
album.moveAlbumTo(GalleryRemote._().getCore().getMainStatusUpdate(), newParent);

//album.moveAlbumTo(null, null);
// todo: this is too drastic...
album.getGallery().reload();

//album.moveAlbumTo(null, null);
}
} else if (source == jSlideshow) {
mf.slideshow();
} else if (source == jResizeTo) {
Expand Down
5 changes: 4 additions & 1 deletion com/gallery/GalleryRemote/GalleryComm2.java
Expand Up @@ -1119,9 +1119,12 @@ private void fetch(Album a, String albumName, ArrayList newPictures)
}

String subAlbumName = p.getProperty("album.name." + i);
boolean subAlbumHidden = p.getBooleanProperty("album.hidden." + i, false);

if (subAlbumName != null) {
fetch(a, subAlbumName, newPictures);
if (!subAlbumHidden) {
fetch(a, subAlbumName, newPictures);
}
} else {
Picture picture = new Picture(g);
picture.setOnline(true);
Expand Down
9 changes: 6 additions & 3 deletions com/gallery/GalleryRemote/util/ImageUtils.java
Expand Up @@ -326,13 +326,16 @@ public static File resizeJava(String filename, Dimension d) {
ImageReader reader = (ImageReader)iter.next();
ImageReadParam param = reader.getDefaultReadParam();
reader.setInput(iis, true, false);
IIOImage image = reader.readAll(0, param);

// Java bug with thumbnails
//IIOImage image = reader.readAll(0, param);
BufferedImage rim = (BufferedImage) reader.readAsRenderedImage(0, param);

iis.close();
reader.dispose();

// resize the image
BufferedImage rim = (BufferedImage) image.getRenderedImage();
//BufferedImage rim = (BufferedImage) image.getRenderedImage();

Dimension newD = getSizeKeepRatio(
new Dimension(rim.getWidth(), rim.getHeight()),
Expand Down Expand Up @@ -372,7 +375,7 @@ public static File resizeJava(String filename, Dimension d) {
//displayMetadata(metadata.getAsTree(metadata.getNativeMetadataFormatName()));

// todo: despite my best efforts, I can't get the ImageIO library to keep the metadata.
image = new IIOImage(scaledB, null, null);
IIOImage image = new IIOImage(scaledB, null, null);

//image.getMetadata().mergeTree(metadata.getNativeMetadataFormatName(), root);

Expand Down
4 changes: 2 additions & 2 deletions defaults.properties
Expand Up @@ -230,6 +230,6 @@ updateUrlBeta=http://gallery.sourceforge.net/gallery_remote_version_check_beta.p
#
# --- Do not edit below this line ---
#
version=1.4-RC1
releaseDate=2004/07/10
version=1.4-RC2-b1
releaseDate=2004/07/12
aboutText=Gallery Remote\n \n \nA part of the Gallery Open-Source Project\nhttp://gallery.sourceforge.net\n \n \nMaintained by:\n \nPierre-Luc Paour\n \n \nInitial version by Chris Smith\n \n \nContributors:\n \nTim Miller\nDolan Halbrook\nMarkus Cozowicz\nScott Gartner\nAmedeo Paglione\nChris Schwerdt\n \n \nArtwork by Ross A. Reyman\n \n \nBundled software:\n \nImageMagick\nJSX\nJava look and feel Graphics Repository icons\njpegtran, Guido Vollbeding's version\nMetadataExtractor

0 comments on commit 7c54c16

Please sign in to comment.