DNN Hosting Register Login
 
Latest Discussions Minimize
Video Views by dman
We are trying to programatically update a field in our database when a video is ...
crash after uninstalling UMG by markdenteuling
Hi,I have uninstalled UMG 4.0.4 through DNN and deleted the remaining folders th...
Custom Sort order by joshlfisher
I have a video list module displaying all videos in a certain category. I need t...
quick rate problem in 5.4 by OKCChopper
mxdirtonline.com the quick rate module constantly just shows loading. i am ru...
How Could I Insert a Custom Swap Image for Non-Flash Browsers? by RegGFX
I have a situation where some (because of security concerns)do not allow ActiveX...
what is mean by Online video conversion ? by marbab
I have read the home page. Its written under UVG that we can do 'Online video co...
How to Simplify Personal Gallery? by blob150
I am using UMG 5.3 intergated with Smart-Thinker User Profile.  I have a page se...
Video Size Problem by arshad786
Hi,     I am Arshad , i am trying to play video in my dnn site, but the problem ...
Configuration Error by koolexposure
I received this error on the last step of the Configuration Wizard. I have came ...
Serial Number by abudist
Hi, I have sent you emails regarding serial number for UVG. I'm stil waiting ...
Our Partnership Minimize
If you are looking for good DNN hosting, then PowerDNN is the best DNN host around!
Support Forum Minimize
Subject: Resize complete Album
Prev Next
You are not authorized to post a reply.

Author Messages
Andre van den Berg
Posts:93
Diamond Member

06/14/2008 1:49 AM  

Hello,

Is it possible to resize a complete album afterwards? I created a album and did not set the resize option.

Now when i use the lightbox option i get realy big photo's. that don't fit on the screen.

So i want to resize them so it's looking good in the lightbox.

Pengtsen R
Posts:5440


06/14/2008 5:52 AM  
well, the pictures are resized when you uplaod them, it seems you can't resize them to a different resolution after creation.

Pengtsen R
http://www.bizmodules.net
Andre van den Berg
Posts:93
Diamond Member

06/14/2008 6:07 AM  
How to resolve this?
Andre van den Berg
Posts:93
Diamond Member

06/14/2008 12:53 PM  
I mean so that i not lose my title and description.
Pengtsen R
Posts:5440


06/14/2008 7:43 PM  
it seems this can't be done :(

Pengtsen R
http://www.bizmodules.net
Andre van den Berg
Posts:93
Diamond Member

06/16/2008 2:58 AM  

I solved the problem with the following steps:

1. Make a temp table with name: BizModules_UPG_Photo_Kopie

GO

/****** Object: Table [dbo].[BizModules_UPG_Photo_Kopie] Script Date: 06/16/2008 08:28:48 ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

SET ANSI_PADDING ON

GO

CREATE TABLE [dbo].[BizModules_UPG_Photo_Kopie](

[ItemId] [int] IDENTITY(1,1) NOT NULL,

[AlbumId] [int] NOT NULL,

[Title] [nvarchar](150) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

[Description] [nvarchar](1000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

[Link] [nvarchar](150) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

[Src] [varchar](150) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

[Approved] [bit] NOT NULL,

[CreatedByUser] [int] NOT NULL,

[CreatedDate] [smalldatetime] NOT NULL,

[LastModifiedDate] [smalldatetime] NULL,

[SortOrder] [int] NULL,

[DownloadId] [int] NULL,

[TnWidth] [int] NULL,

[TnHeight] [int] NULL,

[ExifDescription] [nvarchar](1000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

[TakenDate] [smalldatetime] NULL,

CONSTRAINT [PK_BizModules_UPG_Photo_Kopie] PRIMARY KEY CLUSTERED

(

[ItemId] ASC

)WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]

) ON [PRIMARY]

GO

SET ANSI_PADDING OFF

GO

ALTER TABLE [dbo].[BizModules_UPG_Photo_Kopie] WITH CHECK ADD CONSTRAINT [FK_BizModules_UPG_Photo_BizModules_UPG_Album_Kopie] FOREIGN KEY([AlbumId])

REFERENCES [dbo].[BizModules_UPG_Album] ([ItemId])

GO

ALTER TABLE [dbo].[BizModules_UPG_Photo_Kopie] CHECK CONSTRAINT [FK_BizModules_UPG_Photo_BizModules_UPG_Album_Kopie]


2. Copy data from the table: BizModules_UPG_Photo of the album to the table: BizModules_UPG_Photo_Kopie

INSERT INTO BizModules_UPG_Photo_Kopie

(AlbumId, Title, Description, Link, Src, Approved, CreatedByUser, CreatedDate, LastModifiedDate, SortOrder, DownloadId, TnWidth, TnHeight, ExifDescription,

TakenDate)

SELECT AlbumId, Title, Description, Link, Src, Approved, CreatedByUser, CreatedDate, LastModifiedDate, SortOrder, DownloadId, TnWidth, TnHeight, ExifDescription,

TakenDate

FROM BizModules_UPG_Photo AS BizModules_UPG_Photo

WHERE (AlbumId = 98)

3. Select all photo's in the manage photo's and klik remove.

4. Copy the original JPG files to the Large directory.

5. Run synchronise

6. Update the table: BizModules_UPG_Photo with the data that you made a copy in step 2. from the table: BizModules_UPG_Photo_Kopie.

UPDATE BizModules_UPG_Photo

SET BizModules_UPG_Photo.Title = BizModules_UPG_Photo_Kopie.Title, BizModules_UPG_Photo.Description = BizModules_UPG_Photo_Kopie.Description,

BizModules_UPG_Photo.SortOrder = BizModules_UPG_Photo_Kopie.SortOrder

FROM BizModules_UPG_Photo INNER JOIN

BizModules_UPG_Photo_Kopie ON BizModules_UPG_Photo.Src = BizModules_UPG_Photo_Kopie.Src AND

BizModules_UPG_Photo.AlbumId = BizModules_UPG_Photo_Kopie.AlbumId

7. And you have the Title, Description, Sortoder with the photo's again.
Andre van den Berg
Posts:93
Diamond Member

06/16/2008 3:04 AM  
Why do i still see in the presentation the file name in the title and the same in the lightbox. Is there somewhere cache?

How to solve this.

In the manage photo's i see the title en description correct.
Pengtsen R
Posts:5440


06/16/2008 4:19 AM  
maybe you should edit a photo to clear the xml cache.

Pengtsen R
http://www.bizmodules.net
Andre van den Berg
Posts:93
Diamond Member

06/16/2008 6:33 AM  
How to regenerate xml cache?
Pengtsen R
Posts:5440


06/16/2008 8:29 PM  
edit a photo, any photo, then UMG regenerate it.

Pengtsen R
http://www.bizmodules.net
Andre van den Berg
Posts:93
Diamond Member

06/16/2008 9:19 PM  
I did that and it's working, thank you.
Pengtsen R
Posts:5440


06/17/2008 6:18 AM  
great.

Pengtsen R
http://www.bizmodules.net
You are not authorized to post a reply.
Forums > Ultra Media Gallery > General Questions > Resize complete Album

Enterprise level DotNetNuke Solutions Copyright © 2005-2008 BizModules   |  Contact Us  |  Terms Of Use  |  Privacy Statement