다음과 같이 해주시길 바랍니다.

< %@ Language=VBScript %>
< %
Dim UploadPath
Dim UploadPathWaterMark
Dim UploadPathThumbnail
Dim FilePath
Dim FilePath1

set uploadform=server.CreateObject("DEXT.FileUpload")

uploadform.DefaultPath="C:\Temp"

''원본 업로드(1)
UploadPath = uploadform("file").Save
Response.Write("Save as Source Image:" & UploadPath & "
")

set objImage =server.CreateObject("DEXT.ImageProc")

if true = objImage.SetSourceFile(UploadPath) then
''FileNameWithoutExt 속성은 업로드한 파일의 이름을 리턴한다.(확장자 제외)
SourceFileName = uploadform("file").FileNameWithoutExt

FilePath = "C:\Temp\" & SourceFileName & "(WaterMark).jpg"
FilePath1 = "C:\Temp\" & SourceFileName & "(Thumbnail).jpg"

''워터마크 처리(2)
UploadPathWaterMark = objImage.SaveAsWatermarkImage("/DEXTUploadProSamples/Image/WaterMark/watermark.bmp",FilePath,-10,-10,false)
Response.Write("Save as Watermark Image: " & UploadPathWaterMark & "
")
end if

if true = objImage.SetSourceFile(UploadPathWaterMark) then
''워터마킹 처리 된 이미지로 썸네일 처리 한다. (3)
UploadPathThumbnail = objImage.SaveasThumbnail(FilePath1, objImage.ImageWidth/2, objImage.ImageHeight/2, false)
Response.Write("Save as Thumbnail: " & UploadPathThumbnail & "
")
end if
%>



< %
set objImage = nothing
Set uploadform =nothing
%>
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2007/03/16 15:18 2007/03/16 15:18
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/2326

[javascript] 이미지 리사이징

< script>
function imgRsize(img, rW, rH){
var iW = img.width;
var iH = img.height;
var g = new Array;
if(iW < rW && iH < rH) { // 가로세로가 축소할 값보다 작을 경우
g[0] = iW;
g[1] = iH;
} else {
if(img.width > img.height) { // 원크기 가로가 세로보다 크면
g[0] = rW;
g[1] = Math.ceil(img.height * rW / img.width);
} else if(img.width < img.height) { //원크기의 세로가 가로보다 크면
g[0] = Math.ceil(img.width * rH / img.height);
g[1] = rH;
} else {
g[0] = rW;
g[1] = rH;
}
if(g[0] > rW) { // 구해진 가로값이 축소 가로보다 크면
g[0] = rW;
g[1] = Math.ceil(img.height * rW / img.width);
}
if(g[1] > rH) { // 구해진 세로값이 축소 세로값가로보다 크면
g[0] = Math.ceil(img.width * rH / img.height);
g[1] = rH;
}
}
g[2] = img.width; // 원사이즈 가로
g[3] = img.height; // 원사이즈 세로
return g;
}

function gg(img, ww, hh, aL){
var tt = imgRsize(img, 400, 400);
img.width = tt[0];
img.height = tt[1];
if(aL){
img.onclick = function(){
wT = Math.ceil((screen.width - tt[2])/2.6); // 클라이언트 중앙에 이미지위치.
wL = Math.ceil((screen.height - tt[3])/2.6);
mm = window.open(img.src, 'viewOrig', 'width='+tt[2]+',height='+tt[3]+',top='+wT+',left='+wL);
mm.document.body.style.margin = 0; // 마진제거
mm.document.body.style.cursor = "hand";
mm.focus();
if(mm.document.body.onclick) mm.close(); //미해결부분
}
img.style.cursor = "hand";
}
}
// 사용법 gg(this, 400, 400, 1);
// 이미지경로, 가로크기제한, 세로크기제한, 원본새창링크


< img src='/tc/attach/image/465544.jpg' onload='gg(this, 400, 400, 1)'>

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2007/03/16 11:46 2007/03/16 11:46
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/2325

천주교 노 수녀 180명을 대상으로 한 연구 결과, 긍정적 감정을 많이 가지고 있는
수녀들이 그렇지 못한 수녀들보다 훨씬 더 오래 산다는 사실이 밝혀졌다.
수녀들이 20대 초반 손으로 직접 쓴 자서전에 나타난 긍정적 감정의 수를 세어
75세에서 95세의 나이가 된 수녀들의 사망률과 비교해 본 결과 놀라운 결과가 나타났다.
긍정적인 감정을 더 많이 경험하는 수녀의 경우 10년 정도 더 오래 살았던 것이다.
더 놀라운 것은,
긍정적인 감정이 적은 수녀들은 연구가 진행되는 동안 25명이 사망했던 것에 반해
긍정적인 감정이 많은 그룹에서 세상을 떠난 수녀는 오직 10명 뿐이었다는 것이다.
(미시간대학 연구결과)


//---

긍정적인 마인드가 있으면 모든 도전하는 것이 재미있고,
활기가 넘칠 것이다.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2007/03/16 09:25 2007/03/16 09:25
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/2324

황홀한 시간

따스하고 쾌적한 날, 푸른 초원에 앉아
나뭇잎 흔들리는 소리, 새가 지저귀는 소리,
시냇물 흘러가는 소리를 들을 수 있다면.... 상상만으로도
즐거워진다. 호젓하게 홀로 앉아, 좋아하는 음악을 들으면서
흔들흔들 흔들릴 수 있다면, 세상에 그것보다 더 행복한
일은 없을 것이다. 그리고 사랑하는 사람과 나란히 앉아
귀가 간지럽도록 소곤소곤 속닥거릴 수 있다면,
그것보다 더 황홀한 소리가 이 세상에
또 어디 있을 것인가.


- 김미선의《이 여자가 사는 세상》중에서 -


* 아무리 바쁘고 복잡해도
이따금 한번씩은 '황홀한 시간'이 꼭 필요합니다.
따스한 봄볕에 음악도 듣고, 사랑하는 사람과
시간가는 줄 모르며 소곤대는, 그 짧은 순간만으로도
지친 영혼은 생기를 얻고, 눈은 더욱 따뜻하게
세상을 바라보게 합니다.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2007/03/16 09:24 2007/03/16 09:24
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/2323


블로그 이미지

- 홍반장

Archives

Recent Trackbacks

Calendar

«   2007/03   »
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Statistics Graph

Site Stats

Total hits:
175745
Today:
175
Yesterday:
96